pub trait Lexer<T> {
// Required method
fn next_token<'td>(&mut self) -> DiagResult<'td, T>;
}Expand description
A trait that can supply a stream of tokens.
pub trait Lexer<T> {
// Required method
fn next_token<'td>(&mut self) -> DiagResult<'td, T>;
}A trait that can supply a stream of tokens.