about summary refs log tree commit diff
path: root/users/fcuny/exp/monkey
diff options
context:
space:
mode:
Diffstat (limited to 'users/fcuny/exp/monkey')
-rw-r--r--users/fcuny/exp/monkey/pkg/token/token.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/users/fcuny/exp/monkey/pkg/token/token.go b/users/fcuny/exp/monkey/pkg/token/token.go
index fda4449..bc9e563 100644
--- a/users/fcuny/exp/monkey/pkg/token/token.go
+++ b/users/fcuny/exp/monkey/pkg/token/token.go
@@ -16,9 +16,6 @@ const (
 	IDENT = "IDENT"
 	INT   = "INT"
 
-	ASSIGN = "="
-	PLUS   = "+"
-
 	COMMA     = ","
 	SEMICOLON = ";"
 
@@ -29,6 +26,16 @@ const (
 
 	FUNCTION = "FUNCTION"
 	LET      = "LET"
+
+	// The following tokens are for operators
+	ASSIGN   = "="
+	PLUS     = "+"
+	MINUS    = "-"
+	BANG     = "!"
+	ASTERISK = "*"
+	SLASH    = "/"
+	LT       = "<"
+	GT       = ">"
 )
 
 // List of our keywords for the language