summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lex.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/lex.h b/lex.h
index 4d4fa40..922a217 100644
--- a/lex.h
+++ b/lex.h
@@ -22,10 +22,18 @@
X(EQUALS, "=")\
X(COLON, ":")\
X(COMMA, ",")\
- X(NOT, "not")\
- X(AND, "and")\
- X(OR, "or")\
+ X(NOT, "~")\
+ X(AND, "&")\
+ X(OR, "|")\
X(XOR, "xor")\
+ X(SHL, "<<")\
+ X(SHR, ">>")\
+ X(ASSSIGN, ":=")\
+ X(NEQ, "<>")\
+ X(LES, "<")\
+ X(GTR, ">")\
+ X(LTE, "<=")\
+ X(GTE, ">=")\
X(LIT_STR, "string")\
X(LIT_CHAR, "character")\
X(LIT_NUM, "number")
@@ -41,7 +49,10 @@
X(TOK_SLASH, '/')\
X(TOK_EQUALS, '=')\
X(TOK_COLON, ':')\
- X(TOK_COMMA, ',')
+ X(TOK_COMMA, ',')\
+ X(TOK_NOT, '~')\
+ X(TOK_AND, '&')\
+ X(TOK_OR, '|')
typedef enum {