Type Definition logos::Lexicon

source ·
pub type Lexicon<Lexer> = [Option<fn(_: &mut Lexer)>; 256];
Expand description

A Lookup Table used internally. It maps indices for every valid byte to a function that takes a mutable reference to the Lexer, reads the input and sets the correct token variant for it.