Public Member Functions | |
Lexer (const std::string &str) | |
Token | next () |
bool | nextIf (int kind) |
void | reportError (const std::string &what) |
void | reportError (const std::string &what, const Token &t) |
void | expected (const std::string &what, const Token &t) |
void | expected (const std::string &what) |
Token | expect (int kind) |
Token & | lookahead () |
Token & | cur () |