Struct gearley::grammar::BinarizedGrammar [] [src]

pub struct BinarizedGrammar { /* fields omitted */ }

Methods

impl BinarizedGrammar
[src]

impl BinarizedGrammar
[src]

Methods from Deref<Target = BinarizedCfg<History>>

Sorts the rule array.

Sorts the rule array in place, using the argument to compare elements.

Removes consecutive duplicate rules.

Returns generated symbols.

Generates a new unique symbol.

Returns the number of symbols in use.

Eliminates all rules of the form A ::= epsilon.

In other words, this splits off the set of nulling rules.

The language represented by the grammar is preserved, except for the possible lack of the empty string. Unproductive rules aren't preserved.

Trait Implementations

impl Clone for BinarizedGrammar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Deref for BinarizedGrammar
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for BinarizedGrammar
[src]

The method called to mutably dereference a value