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.

returns the current line number. The

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

Implementors