Class Grammar.Rule
java.lang.Object
org.libxmq.imp.ixml.earley.Grammar.Rule
- Enclosing class:
Grammar
A rule: the left hand side of its productions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe cost of the rule, the number of < after = or :, lower is preferred.final charThe mark of the rule: '^' element, '@' attribute, '-' hidden, or 0 for none.final StringThe rule name, eg S, or /1 for a generated rule.final StringThe named rule: the name, or for a generated rule the named rule it was made for, used in error messages and completion.final StringThe name used in the output, rule>alias, or the rule name.final List<Grammar.Production> The productions of the rule, one for each alternative. -
Method Summary
-
Field Details
-
name
The rule name, eg S, or /1 for a generated rule. -
mark
public final char markThe mark of the rule: '^' element, '@' attribute, '-' hidden, or 0 for none. -
output_name
The name used in the output, rule>alias, or the rule name. -
cost
public final int costThe cost of the rule, the number of < after = or :, lower is preferred. -
productions
The productions of the rule, one for each alternative. -
named
The named rule: the name, or for a generated rule the named rule it was made for, used in error messages and completion.
-
-
Method Details
-
toString
-