Trait syntax::parse::lexer::Reader[src]

pub trait Reader {
    fn is_eof(&self) -> bool;
    fn next_token(&mut self) -> TokenAndSpan;
    fn fatal(&self, &str) -> !;
    fn err(&self, &str);
    fn peek(&self) -> TokenAndSpan;
}

Required Methods

fn is_eof(&self) -> bool

fn next_token(&mut self) -> TokenAndSpan

fn fatal(&self, &str) -> !

Report a fatal error with the current span.

fn err(&self, &str)

Report a non-fatal error with the current span.

fn peek(&self) -> TokenAndSpan

Implementors