Allow for stmt to have empty clauses, resolved #58

This commit is contained in:
2023-02-13 14:42:43 +00:00
parent eb8e522bf2
commit 1ed114b80d
8 changed files with 58 additions and 7 deletions

View File

@@ -1827,6 +1827,10 @@ static void execInterpreter(Toy_Interpreter* interpreter) {
while(opcode != TOY_OP_EOF && opcode != TOY_OP_SECTION_END && !interpreter->panic) {
switch(opcode) {
case TOY_OP_PASS:
//DO NOTHING
break;
case TOY_OP_ASSERT:
if (!execAssert(interpreter)) {
return;