Expand description
Lexer for Jingo. See scan_code for main lexing capabilities.
Structs§
Enums§
Functions§
- keyword_
match - Matches keywords like
and
to TokenType::And for easy keyword recognition outside of this lexer. - scan_
code - Lexes code into Vec<Token> or provides an error in the form of JingoError.
- scan_
next_ token - Gets next token in line of peekable
chars
(as this lexer is lookahead, it needschars.peekable()
enabled).