Trait rustlr::lexer_interface::Lexer
source · [−]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
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;
fn current_line(&self) -> &str
fn current_line(&self) -> &str
returns the current line being tokenized. The default implementation returns the empty string.