Declaring all the possible TokenType

This commit is contained in:
2026-03-16 09:07:42 +01:00
parent a162b356a7
commit a65454478d
+22
View File
@@ -6,3 +6,25 @@ type Token struct {
Type TokenType Type TokenType
Literal string Literal string
} }
const (
ILLEGAL = "ILLEGAL"
EOF = "EOF"
IDENT = "IDENT"
INT = "INT"
ASSIGN = "="
PLUS = "+"
COMMA = ","
SEMICOLON = ";"
LPAREN = "LPAREN"
RPAREN = "RPAREN"
LBRACE = "LBRACE"
RBRACE = "RBRACE"
FUNCTION = "FUNCTION"
LET = "LET"
)