pub trait Tokens<F> {
    type Error: Debug;
    fn peek(&mut self) -> Result<Loc<Option<&Token>, F>, Loc<Self::Error, F>>;
fn next(&mut self) -> Result<Loc<Option<Token>, F>, Loc<Self::Error, F>>; }
Expand description

Stream of token, with lookahead.

Associated Types

Required methods

Implementors