Trait moore_common::lexer::Lexer
source · [−]pub trait Lexer<T> {
fn next_token<'td>(&mut self) -> DiagResult<'td, T>;
}
Expand description
A trait that can supply a stream of tokens.
pub trait Lexer<T> {
fn next_token<'td>(&mut self) -> DiagResult<'td, T>;
}
A trait that can supply a stream of tokens.