aboutsummaryrefslogtreecommitdiff
path: root/asm/lexer.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-02 20:52:05 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-02 20:54:26 +0000
commit9afeed6d617da4841a031423286a0b3f3804f774 (patch)
tree2d853a933aba53c4a400a1099f5b9e8b317422d8 /asm/lexer.h
parentbc3f12909380bd7a6f2d6dc76691ec8439b88388 (diff)
downloadovm-9afeed6d617da4841a031423286a0b3f3804f774.tar.gz
ovm-9afeed6d617da4841a031423286a0b3f3804f774.tar.bz2
ovm-9afeed6d617da4841a031423286a0b3f3804f774.zip
Made separate tokens for JUMP_ABS and JUMP_STACK
Makes more sense, don't need to fiddle around with strings as much in the parser due to this!
Diffstat (limited to 'asm/lexer.h')
-rw-r--r--asm/lexer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/asm/lexer.h b/asm/lexer.h
index 2d747bc..687e1a6 100644
--- a/asm/lexer.h
+++ b/asm/lexer.h
@@ -48,7 +48,8 @@ typedef enum TokenType
TOKEN_SUB,
TOKEN_MULT,
TOKEN_PRINT,
- TOKEN_JUMP,
+ TOKEN_JUMP_ABS,
+ TOKEN_JUMP_STACK,
TOKEN_JUMP_IF,
TOKEN_SYMBOL,
} token_type_t;