summaryrefslogtreecommitdiff
path: root/token
diff options
context:
space:
mode:
authorMichael Tews <git@tews.dev>2024-06-19 05:30:04 +0200
committerMichael Tews <michael@tews.dev>2026-04-12 11:11:01 +0200
commit5cc4864ae2c10aa27e9a1d10fe0478f2048f930c (patch)
treec6194c0ffc0e263d1989f9d48222c0bd3e6657fc /token
parent5c3c7deb46ec17051906142ac37a096345a60a8a (diff)
feat(lexer): added tokens and updated NextToken() with the tokens
adds =,+,-,!,*,/ tokens
Diffstat (limited to 'token')
-rw-r--r--token/token.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/token/token.go b/token/token.go
index 4cd3a3d..7581e2f 100644
--- a/token/token.go
+++ b/token/token.go
@@ -9,8 +9,15 @@ const (
INT = "INT"
// Operators
- ASSIGN = "="
- PLUS = "+"
+ ASSIGN = "="
+ PLUS = "+"
+ MINUS = "-"
+ BANG = "!"
+ ASTERISK = "*"
+ SLASH = "/"
+
+ LT = "<"
+ GT = ">"
// Delimiters
COMMA = ","