pub struct ContextFreeLexer<'a> { /* private fields */ }
Expand description

Represents a context-free lexer (lexing rules do not depend on the context)

Implementations§

Creates a new lexer

Trait Implementations§

Gets the terminals matched by this lexer

Gets the lexer’s input text

Gets the lexer’s output stream of tokens

Gets the lexer’s errors

Gets the maximum Levenshtein distance to go to for the recovery of a matching failure. A distance of 0 indicates no recovery.

Sets the maximum Levenshtein distance to go to for the recovery of a matching failure. A distance of 0 indicates no recovery.

Gets the next token in the input

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.