Started work on rewriting the Parser.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user