Cleaned up the Makefile, added the framework for checking for runtime errrors in the Interpreter and fixed a bug where I didn't close out the 'va_list' in the Match function in the Parser.

This commit is contained in:
2022-03-17 18:58:23 +00:00
parent 34557c92c3
commit 1e6bbb87d4
3 changed files with 28 additions and 10 deletions
+3
View File
@@ -157,11 +157,14 @@ int Match(int count, ...) {
for(int i = 0; i < count; i++) {
if(Check(va_arg(list, TokenType))) {
va_end(list);
AdvanceParser();
return 1;
}
}
va_end(list);
return 0;
}