summaryrefslogtreecommitdiff
path: root/lexer.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-08-09 17:52:46 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-08-09 17:52:46 -0400
commit2b03202a30e9da09bfc5c0d382b1f5d2287287a4 (patch)
tree6b918e0f2eee2b56e07a95d8b8397143d24f9106 /lexer.h
parentf16af793a58a9f398fc598a0c129e3bb90eb61f6 (diff)
Added the bitwise OR, left shift, and right shift
expressions to the emulator's assembler.
Diffstat (limited to 'lexer.h')
-rw-r--r--lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer.h b/lexer.h
index 225a5e5..3a9951e 100644
--- a/lexer.h
+++ b/lexer.h
@@ -19,6 +19,7 @@ static inline uint8_t isdelm2(char c, uint8_t dbg) {
case '.' :
case '+' :
case '<' :
+ case '|' :
case '>' :
case '-' :
case ':' :
@@ -41,6 +42,7 @@ static inline uint8_t get_ptok(char c, uint8_t dbg) {
case '-' : return PTOK_MINUS ;
case '>' : return PTOK_GT ;
case '<' : return PTOK_LT ;
+ case '|' : return PTOK_PIPE ;
case '(' : return PTOK_LBRACK ;
case ')' : return PTOK_RBRACK ;
case ',' : return PTOK_COMMA ;