[][src]Trait moore::lexer::Lexer

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

A trait that can supply a stream of tokens.

Required methods

fn next_token<'td>(&mut self) -> Result<T, DiagnosticBuilder<'td>>

Loading content...

Implementors

impl<T> Lexer<T> for StackedLexer<T> where
    T: Clone + PartialEq<T>, 
[src]

Loading content...