|
picceler
|
Lexical analyzer for the picceler programming language. More...
#include <lexer.h>
Public Member Functions | |
| Lexer () | |
| Constructs a Lexer. | |
| Result< void > | setSource (const std::string &source) |
| Sets the source file for the lexer. | |
| Result< Token > | nextToken () |
| Returns the next token from the input. | |
| Result< Token > | peekToken () |
| Returns the next token without advancing the input. | |
| void | skipWhitespace () |
| Skips whitespace characters in the input. | |
| Result< std::vector< Token > > | tokenizeAll () |
| Tokenizes the entire input. | |
Lexical analyzer for the picceler programming language.
| picceler::Lexer::Lexer | ( | ) |
Constructs a Lexer.
Returns the next token from the input.
Returns the next token without advancing the input.
| Result< void > picceler::Lexer::setSource | ( | const std::string & | source | ) |
Sets the source file for the lexer.
| source | The source file to read from. |
| void picceler::Lexer::skipWhitespace | ( | ) |
Skips whitespace characters in the input.
Tokenizes the entire input.