Trait rustlr::Lexer [−][src]
pub trait Lexer<AT: Default> {
fn nextsym(&mut self) -> Option<Lextoken<AT>>;
fn linenum(&self) -> usize;
fn column(&self) -> usize;
}
Expand description
This trait defines the interace that any lexical analyzer must be adopted to.
Required methods
retrieves the next Lextoken, or None at end-of-stream.