AST is working!!!!

This commit is contained in:
SpookyDervish
2025-10-13 17:41:07 +11:00
parent 40d695729f
commit 985af13d6a
6 changed files with 219 additions and 6 deletions

View File

@@ -91,6 +91,8 @@ class Lexer:
tok = self.__new_token(TokenType.LCURLY, self.current_char)
case "}":
tok = self.__new_token(TokenType.RCURLY, self.current_char)
case ";":
tok = self.__new_token(TokenType.SEMICOLON, self.current_char)
case ":":
tok = self.__new_token(TokenType.COLON, self.current_char)
case None: