Class ParseForestGLL

java.lang.Object
org.nineml.coffeegrinder.parser.ParseForest
org.nineml.coffeegrinder.parser.ParseForestGLL

public class ParseForestGLL extends ParseForest
An SPPF is a shared packed parse forest.

The SPPF is a graph representation of all the (possibly infinite) parses that can be used to recognize the input sequence as a sentence in the grammar. This forest is created by the GLL parser.

  • Constructor Details

  • Method Details

    • findOrCreate

      public ForestNodeGLL findOrCreate(State state, Symbol symbol, int leftExtent, int rightExtent)
    • extendableLeaf

      public ForestNodeGLL extendableLeaf()
    • mkPN

      public ForestNodeGLL mkPN(State slot, int leftExtent, int pivot, int rightExtent)
    • prune

      public void prune()