Class EarleyItem


  • public class EarleyItem
    extends java.lang.Object
    An Earley item.

    Earley items are used internally by the parser to keep track of the current state. The current state is an internal State that tracks progress through a production and an indication of where (in the input) the item began. There's also a ForestNode to track the parse forest.

    • Field Detail

      • state

        public final State state
      • j

        public final int j
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object