diff options
author | franck cuny <franck@fcuny.net> | 2020-01-11 14:37:52 +0100 |
---|---|---|
committer | franck cuny <franck@fcuny.net> | 2020-01-11 14:37:52 +0100 |
commit | 72ce9e990e8df7ad4ddb591dd0a0b96cf89503f6 (patch) | |
tree | 1e4111edd36401bce35b8c3bb938e143fcdee029 /users/fcuny/exp | |
parent | lexer: test the new keywords are parsed correctly. (diff) | |
download | world-72ce9e990e8df7ad4ddb591dd0a0b96cf89503f6.tar.gz |
token: add tokens for equal and not equal.
Diffstat (limited to 'users/fcuny/exp')
-rw-r--r-- | users/fcuny/exp/monkey/pkg/token/token.go | 3 |
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 |