Class EarleyItem

java.lang.Object
org.nineml.coffeegrinder.parser.EarleyItem

public class EarleyItem extends 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 Details

    • state

      public final State state
    • j

      public final int j
    • w

      public final ForestNode w
  • Method Details