diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-04-16 10:50:20 +0100 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-04-16 10:50:20 +0100 |
| commit | 2aa179fdd5033148c885056ea4953eae6426a5b3 (patch) | |
| tree | 0d0f9bf911074318cd1f347983153c76503c0f83 /include/token_type.hpp | |
| parent | 32a1609b59fcbbfe24e223c078d51f8bfa08566f (diff) | |
Extended lexer to support all types of tokens needed.
Diffstat (limited to 'include/token_type.hpp')
| -rw-r--r-- | include/token_type.hpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/token_type.hpp b/include/token_type.hpp index d123aaa..a62369d 100644 --- a/include/token_type.hpp +++ b/include/token_type.hpp @@ -3,20 +3,35 @@ enum class TokenType { INT, STRING, + FUNCTION, NUMBER, IDENTIFIER, + RETURN, + + IF, + WHILE, + FOR, PLUS, MINUS, MULTIPLY, DIVIDE, + EQUAL, + LESS_EQUAL, + GREATER_EQUAL, + LESS, + GREATER, ASSIGN, + ARROW, SEMICOLON, + LEFT_BRACKET, + RIGHT_BRACKET, + LEFT_BRACE, + RIGHT_BRACE, END_OF_FILE, - INVALID - + INVALID, }; |
