Package org.nineml.coffeegrinder.parser
Class ParseForestGLL
java.lang.Object
org.nineml.coffeegrinder.parser.ParseForest
org.nineml.coffeegrinder.parser.ParseForestGLL
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.
-
Field Summary
Fields inherited from class org.nineml.coffeegrinder.parser.ParseForest
logcategory -
Constructor Summary
ConstructorsConstructorDescriptionParseForestGLL(ParserOptions options, ParserGrammar grammar, int rightExtent, Token[] inputTokens) -
Method Summary
Modifier and TypeMethodDescriptionfindOrCreate(State state, Symbol symbol, int leftExtent, int rightExtent) voidprune()Methods inherited from class org.nineml.coffeegrinder.parser.ParseForest
getAmbiguousNodes, getNodes, getOptions, getParseTreeCount, getRoot, isAmbiguous, isInfinitelyAmbiguous, serialize, serialize, serialize, size
-
Constructor Details
-
ParseForestGLL
public ParseForestGLL(ParserOptions options, ParserGrammar grammar, int rightExtent, Token[] inputTokens)
-
-
Method Details
-
findOrCreate
-
extendableLeaf
-
mkPN
-
prune
public void prune()
-