Parser

If the item is of the form [ <i>B</i> &rarr; &beta; &bull;, <i>k</i> ] then for each item [ <i>A</i> &rarr; &alpha; &bull; <i>B</i> &gamma;, <i>j</i> ] in the Earley set denoted by <i>k</i> an item [ <i>A</i> &rarr; &alpha; <i>B</i> &bull; &gamma;, <i>j</i> ] is added to the current Earley set.

If the item is of the form [ <i>A</i> &rarr; &alpha; &bull; <i>B</i> &gamma;, <i>j</i> ] then for each alternative <i>B</i> &rarr; &beta; an item [ <i>B</i> &rarr; &bull; &beta;, <i>k</i> ] is added to the current Earley set, which is denoted by <i>k</i>.

If the item is of the form [ <i>A</i> &rarr; &alpha; &bull; <i>X</i> &gamma;, <i>i</i> ] where <i>X</i> equals the current symbol then an item [ <i>A</i> &rarr; &alpha; <i>X</i> &bull; &gamma;, <i>i</i> ] is added to the next Earley set.

Constructors

this
this(Grammar grammar)

@param grammar

Members

Functions

parse
Term parse(Nonterminal startSymbol, AffixForm affixForm)

@param startSymbol @param affixForm @return

term
Term term(Item item)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta