|
sammine-lang
|
A helper class for Lexer to simplify the process of getting a token. More...
#include <Token.h>
Public Member Functions | |
| void | push_back (const std::shared_ptr< Token > &token) |
| bool | hasErrors () |
| void | push_back (const Token &token) |
| std::shared_ptr< Token > & | exhaust_until (TokenType tokType) |
| bool | isEnd () |
| std::shared_ptr< Token > | peek () |
| std::shared_ptr< Token > | consume () |
| sammine_util::Location | currentLocation () |
Public Attributes | |
| std::vector< std::shared_ptr< Token > > | ErrStream |
A helper class for Lexer to simplify the process of getting a token.