| java.lang.Object xtc.parser.Properties
Properties | public class Properties (Code) | | Definition of node property names.
author: Robert Grimm version: $Revision: 1.16 $ |
COST | final public static String COST(Code) | | The cost property. It is associated with productions, has an
integer value, and indicates a production's estimated cost for
inlining.
|
DUPLICATES | final public static String DUPLICATES(Code) | | 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.
|
EMPTY | final public static String EMPTY(Code) | | The empty property. It is associated with productions, has a
boolean value, and indicates whether a production may match the
empty input.
|
FORMATTING | final public static String FORMATTING(Code) | | 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.
|
GENERIC | final public static String GENERIC(Code) | | The generic property. When associated with a production, it has
a
Properties.GENERIC_NODE value indicating that the production's
semantic value is a generic node with the component values as its
children or a
Properties.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.
|
GENERIC_NODE | final public static String GENERIC_NODE(Code) | | The generic node value.
|
GENERIC_RECURSION | final public static String GENERIC_RECURSION(Code) | | The generic recursion value.
|
INPUT | final public static String INPUT(Code) | | The input property. It is associated with productions, has a
boolean value, and indicates whether a production may consume the
input.
|
LEXICAL | final public static String LEXICAL(Code) | | The lexical property. It is associated with productions, has a
boolean value, and indicates whether a production recognizes
lexical syntax.
|
LOCATABLE | final public static String LOCATABLE(Code) | | The locatable property. It is associated with a grammar, has a
boolean value, and indicates whether the corresponding parser
uses the locatable interface.
|
META_DATA | final public static String META_DATA(Code) | | The meta-data property. It is associated with productions and
has a
MetaData value containing a production's meta-data.
|
OPTION | final public static String OPTION(Code) | | The option property. It is associated with productions, has a
boolean value, and indicates whether a production represents a
desugared option.
|
RECURSIVE | final public static String RECURSIVE(Code) | | 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.
|
REDACTED | final public static String REDACTED(Code) | | 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.
|
REPEATED | final public static String REPEATED(Code) | | 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.
|
ROOT | final public static String ROOT(Code) | | 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).
|
SPLIT | final public static String SPLIT(Code) | | 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.
|
TEXT_ONLY | final public static String TEXT_ONLY(Code) | | The text-only property. It is associated with productions, has a
boolean value, and indicates whether a production is text-only.
|
TOKEN | final public static String TOKEN(Code) | | The token property. It is associated with productions, has a
boolean value, and indicates whether a production represents a
lexical token.
|
TRANSFORMABLE | final public static String TRANSFORMABLE(Code) | | 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.
|
VOIDED | final public static String VOIDED(Code) | | The voided property. It is associated with productions, has a
boolean value, and indicates whether the production's value has
been eliminated.
|
getDuplicates | public static List<String> getDuplicates(Production p)(Code) | | Get the value of the duplicates property.
Parameters: p - The production. The list of folded productions. |
getFormatting | public static List<Binding> getFormatting(Sequence s)(Code) | | Get the value of the formatting property.
Parameters: s - The sequence. The list of bindings. |
|
|