xtc.parser
Class Properties

java.lang.Object
  extended by xtc.parser.Properties

public class Properties
extends java.lang.Object

Definition of node property names.

Version:
$Revision: 1.17 $
Author:
Robert Grimm

Field Summary
static java.lang.String CONSUMER
          The consumer property.
static java.lang.String COST
          The cost property.
static java.lang.String DUPLICATES
          The duplicates property.
static java.lang.String EMPTY
          The empty property.
static java.lang.String FORMATTING
          The formatting property.
static java.lang.String GENERIC
          The generic property.
static java.lang.String GENERIC_NODE
          The generic node value.
static java.lang.String GENERIC_RECURSION
          The generic recursion value.
static java.lang.String LEXICAL
          The lexical property.
static java.lang.String LOCATABLE
          The locatable property.
static java.lang.String META_DATA
          The meta-data property.
static java.lang.String OPTION
          The option property.
static java.lang.String RECURSIVE
          The recursive property.
static java.lang.String REDACTED
          The redacted property.
static java.lang.String REPEATED
          The repeated property.
static java.lang.String RESTRICT
          The restrict property.
static java.lang.String ROOT
          The root property.
static java.lang.String SPLIT
          The split property.
static java.lang.String TEXT_ONLY
          The text-only property.
static java.lang.String TOKEN
          The token property.
static java.lang.String TRANSFORMABLE
          The transformable property.
static java.lang.String VOIDED
          The voided property.
 
Method Summary
static java.util.List<java.lang.String> getDuplicates(Production p)
          Get the value of the duplicates property.
static java.util.List<Binding> getFormatting(Sequence s)
          Get the value of the formatting property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSUMER

public static final java.lang.String CONSUMER
The consumer property. It is associated with productions, has a boolean value, and indicates whether a production may consume the input.

See Also:
Constant Field Values

COST

public static final java.lang.String COST
The cost property. It is associated with productions, has an integer value, and indicates a production's estimated cost for inlining.

See Also:
Constant Field Values

DUPLICATES

public static final java.lang.String DUPLICATES
The duplicates property. It is associated with productions, has a list of strings value, and indicates the names of the original productions folded into the annotated one.

See Also:
Constant Field Values

EMPTY

public static final java.lang.String EMPTY
The empty property. It is associated with productions, has a boolean value, and indicates whether a production may match the empty input.

See Also:
Constant Field Values

GENERIC

public static final java.lang.String GENERIC
The generic property. When associated with a production, it has a GENERIC_NODE value indicating that the production's semantic value is a generic node with the component values as its children or a GENERIC_RECURSION value indicating that the production's value is the result of a left-recursive production. When associated with a grammar, it has boolean value indicating whether the grammar contains generic nodes.

See Also:
Constant Field Values

GENERIC_NODE

public static final java.lang.String GENERIC_NODE
The generic node value.

See Also:
Constant Field Values

GENERIC_RECURSION

public static final java.lang.String GENERIC_RECURSION
The generic recursion value.

See Also:
Constant Field Values

FORMATTING

public static final java.lang.String FORMATTING
The formatting property. It is associated with sequences, has a list of bindings as its value, and indicates that a recursive alternative in a directly left-recursive generic production has formatting annotations for the node generated by the promise.

See Also:
Constant Field Values

LEXICAL

public static final java.lang.String LEXICAL
The lexical property. It is associated with productions, has a boolean value, and indicates whether a production recognizes lexical syntax.

See Also:
Constant Field Values

LOCATABLE

public static final java.lang.String LOCATABLE
The locatable property. It is associated with a grammar, has a boolean value, and indicates whether the corresponding parser uses the locatable interface.

See Also:
Constant Field Values

META_DATA

public static final java.lang.String META_DATA
The meta-data property. It is associated with productions and has a MetaData value containing a production's meta-data.

See Also:
Constant Field Values

OPTION

public static final java.lang.String OPTION
The option property. It is associated with productions, has a boolean value, and indicates whether a production represents a desugared option.

See Also:
Constant Field Values

RECURSIVE

public static final java.lang.String RECURSIVE
The recursive property. It is associated with grammars, has a boolean value, and indicates that a grammar contains directly left-recursive generic productions. It is also associated with productions and indicates that a production is left-recursive.

See Also:
Constant Field Values

REDACTED

public static final java.lang.String REDACTED
The redacted property. It is associated with productions, has a boolean value, and indicates that a production's body has been removed even though the production really has a body.

See Also:
Constant Field Values

REPEATED

public static final java.lang.String REPEATED
The repeated property. It is associated with productions, has a nonterminal value, and indicates that a production represents a desguared repetition whose element value is the value of the nonterminal.

See Also:
Constant Field Values

RESTRICT

public static final java.lang.String RESTRICT
The restrict property. It is associated with productions, has a boolean value, and indicates whether a production restricts the input.

See Also:
Constant Field Values

ROOT

public static final java.lang.String ROOT
The root property. It is associated with grammars, has a nonterminal value, and indicates a grammar's real root (i.e., the single public production that directly or indirectly references all other public productions).

See Also:
Constant Field Values

SPLIT

public static final java.lang.String SPLIT
The split property. It is associated with productions, has a boolean value, and indicates that the production's alternatives need to be split. It is also associated with sequences, has a Annotator.IndexPair value, and indicates how to split the sequence.

See Also:
Constant Field Values

TEXT_ONLY

public static final java.lang.String TEXT_ONLY
The text-only property. It is associated with productions, has a boolean value, and indicates whether a production is text-only.

See Also:
Constant Field Values

TOKEN

public static final java.lang.String TOKEN
The token property. It is associated with productions, has a boolean value, and indicates whether a production represents a lexical token.

See Also:
Constant Field Values

TRANSFORMABLE

public static final java.lang.String TRANSFORMABLE
The transformable property. It is associated with productions, has a boolean value, and indicates whether a production is a directly left-recursive production that can be transformed into an equivalent right-recursive or -iterative production.

See Also:
Constant Field Values

VOIDED

public static final java.lang.String VOIDED
The voided property. It is associated with productions, has a boolean value, and indicates whether the production's value has been eliminated.

See Also:
Constant Field Values
Method Detail

getDuplicates

public static java.util.List<java.lang.String> getDuplicates(Production p)
Get the value of the duplicates property.

Parameters:
p - The production.
Returns:
The list of folded productions.

getFormatting

public static java.util.List<Binding> getFormatting(Sequence s)
Get the value of the formatting property.

Parameters:
s - The sequence.
Returns:
The list of bindings.


Copyright © 2012. All Rights Reserved.