Package org.nineml.coffeegrinder.parser
package org.nineml.coffeegrinder.parser
The parser classes.
In outline:
- Create a
Grammar. - Use the grammar to create
NonterminalSymbols. - Use the grammar (or
Ruledirectly) to create rules and add them to the grammar. - Create an
EarleyParserfrom the grammar. - Parse a sequence of input tokens to obtain an
EarleyResult. - From the result, you can get information about the success or failure of the parse, and possibly continue parsing.
- If the parse was successful, get the
ParseForest(a shared packed parse forest) from the parse. - Use the forest to get
GenericTreeparse tree(s). - The forest will also tell you about the ambiguity of the result, the number of parse trees available, etc.
-
ClassDescriptionAn ambiguity report.The chart used for Earley parsing.An Earley item.The Earley parser.The results of an Earley parse.An internal class representing a family of nodes in the SPPF.A node in the SPPF.A node in the SPPF constructed by the GLL parser.A utility class for constructing forest nodes.The parser interface for Earley and GLL parsers.The result of a parse with an Earley or GLL parser.The grammar representation.A report on the hygiene of a grammar.A nonterminal symbol in the grammar.An SPPF is a shared packed parse forest.An SPPF is a shared packed parse forest.The parser uses a ParseListener to report on its progress.A grammar for the parser.Options to the parser.The ProgressMonitor allows you to track the progress of a parse.A utility class for what appears on the "right hand side" of a production in a grammar.A grammar rule.A grammar for the parser.States (or Earley items) in the chart.A grammar symbol.A terminal symbol.