about summary refs log tree commit diff
path: root/users/fcuny
diff options
context:
space:
mode:
authorfranck cuny <franck@fcuny.net>2020-01-11 14:37:52 +0100
committerfranck cuny <franck@fcuny.net>2020-01-11 14:37:52 +0100
commit72ce9e990e8df7ad4ddb591dd0a0b96cf89503f6 (patch)
tree1e4111edd36401bce35b8c3bb938e143fcdee029 /users/fcuny
parentlexer: test the new keywords are parsed correctly. (diff)
downloadworld-72ce9e990e8df7ad4ddb591dd0a0b96cf89503f6.tar.gz
token: add tokens for equal and not equal.
Diffstat (limited to 'users/fcuny')
-rw-r--r--users/fcuny/exp/monkey/pkg/token/token.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/users/fcuny/exp/monkey/pkg/token/token.go b/users/fcuny/exp/monkey/pkg/token/token.go
index a211c55..b2342e7 100644
--- a/users/fcuny/exp/monkey/pkg/token/token.go
+++ b/users/fcuny/exp/monkey/pkg/token/token.go
@@ -42,6 +42,9 @@ const (
 	SLASH    = "/"
 	LT       = "<"
 	GT       = ">"
+
+	EQ     = "=="
+	NOT_EQ = "!="
 )
 
 // List of our keywords for the language