Started work on rewriting the Parser.

This commit is contained in:
2022-05-10 21:03:09 +00:00
parent fbef044905
commit 72abf6c4ab
3 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ int IsOpcode(const char* text, TokenType* opcode) {
for(int i = 0; i < OPCODECOUNT; i++) {
if (strcmp(opcodes[i].lexeme, text) == 0) {
*opcode = opcodes[i].op;
if (opcode) *opcode = opcodes[i].op;
return 1;
}
}