From 2aa179fdd5033148c885056ea4953eae6426a5b3 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Thu, 16 Apr 2026 10:50:20 +0100 Subject: Extended lexer to support all types of tokens needed. --- include/token_type.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'include') 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, }; -- cgit v1.2.3