pub trait Lexer<AT: Default> {
    fn nextsym(&mut self) -> Option<Lextoken<AT>>;

    fn linenum(&self) -> usize { ... }
    fn column(&self) -> usize { ... }
    fn current_line(&self) -> &str { ... }
}
Expand description

This trait is deprecated by Tokenizer and is only retained for compatibility.

Required Methods

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

Provided Methods

returns the current line number. The default implementation returns 0.

returns the current column (character position) on the current line. The default implementation returns 0;

returns the current line being tokenized. The default implementation returns the empty string.

Implementors