Class Rule

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Production>, Collection<Production>, List<Production>, RandomAccess, SequencedCollection<Production>

public class Rule extends ArrayList<Production>
Represents a rule in a BNF grammar.
See Also:
  • Field Details

    • recursive

      protected boolean recursive
      Recursive nature of rule
    • minimumDepth

      protected int minimumDepth
      Minimum depth of parse tree for production to map to terminal symbol(s)
    • lhs

      protected Symbol lhs
      Left hand side symbol of the rule
  • Constructor Details

    • Rule

      public Rule()
      Constructor
  • Method Details