Class Grammar.Rule

java.lang.Object
org.libxmq.imp.ixml.earley.Grammar.Rule
Enclosing class:
Grammar

public static final class Grammar.Rule extends Object
A rule: the left hand side of its productions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The cost of the rule, the number of < after = or :, lower is preferred.
    final char
    The mark of the rule: '^' element, '@' attribute, '-' hidden, or 0 for none.
    final String
    The rule name, eg S, or /1 for a generated rule.
    final String
    The named rule: the name, or for a generated rule the named rule it was made for, used in error messages and completion.
    final String
    The name used in the output, rule>alias, or the rule name.
    The productions of the rule, one for each alternative.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      public final String name
      The rule name, eg S, or /1 for a generated rule.
    • mark

      public final char mark
      The mark of the rule: '^' element, '@' attribute, '-' hidden, or 0 for none.
    • output_name

      public final String output_name
      The name used in the output, rule>alias, or the rule name.
    • cost

      public final int cost
      The cost of the rule, the number of < after = or :, lower is preferred.
    • productions

      public final List<Grammar.Production> productions
      The productions of the rule, one for each alternative.
    • named

      public final String 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