aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-04-16 10:50:20 +0100
committerCori Barker <coribarker2@gmail.com>2026-04-16 10:50:20 +0100
commit2aa179fdd5033148c885056ea4953eae6426a5b3 (patch)
tree0d0f9bf911074318cd1f347983153c76503c0f83 /include
parent32a1609b59fcbbfe24e223c078d51f8bfa08566f (diff)
Extended lexer to support all types of tokens needed.
Diffstat (limited to 'include')
-rw-r--r--include/token_type.hpp19
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,
};