pub trait Lexer<T> {
    fn next_token<'td>(&mut self) -> DiagResult<'td, T>;
}
Expand description

A trait that can supply a stream of tokens.

Required methods

Implementors