pub struct RTParserBuilder<'a, LexemeT: Lexeme<StorageT>, StorageT: Eq + Hash> { /* private fields */ }
Expand description

A run-time parser builder.

Implementations

Create a new run-time parser from a YaccGrammar, and a StateTable.

Set the recoverer for this parser to rk.

Parse input, and (if possible) return a generic parse tree. See the arguments for parse_actions for more details about the return value.

Parse input, returning any errors found. See the arguments for parse_actions for more details about the return value.

Parse input, execute actions, and return the associated value (if possible) and/or any lexing/parsing errors encountered. Note that the two parts of the (value, errors) return pair are entirely independent: one can encounter errors without a value being produced (None, [...]), errors and a value (Some(...), [...]), as well as a value and no errors (Some(...), []). Errors are sorted by the position they were found in the input and can be a mix of lexing and parsing errors.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.