Struct rustlr::charlexer[][src]

pub struct charlexer<'t> { /* fields omitted */ }
Expand description

This is a sample Lexer implementation designed to return every character in a string as a separate token, and is used in small grammars for testing and illustration purposes. It is assumed that the characters read are defined as terminal symbols in the grammar.

Implementations

Trait Implementations

retrieves the next Lextoken, or None at end-of-stream.

returns the current line number. The

returns the current column (character position) on the current line.

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

Performs the conversion.

Performs the conversion.

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.