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.
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.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.