Struct server::parse::lex::Lexer [] [src]

pub struct Lexer<'a> {
    // some fields omitted
}

A lexer with its associated query, a char iterator, and positions (last, current, next)

Methods

impl<'a> Lexer<'a>

fn from_query<'b>(query: &'b str) -> Lexer<'b>

New lexer, everything set to None

fn next_real(&mut self) -> Result<Option<TokenSpan>, LexError>

Returns next token that is not a whitespace