Class Grammar.Production

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

public static final class Grammar.Production extends Object
One alternative of a rule: rule → symbol symbol ...
  • Field Details

    • rule

      public final Grammar.Rule rule
      The rule this is an alternative of.
    • symbols

      public final List<Grammar.Symbol> symbols
      The symbols, in order. An empty list is the empty alternative.
    • number

      public final int number
      The production number in the grammar, used to print and order productions.
  • Method Details