Closed MysteryBlokHed closed 3 years ago
Testing the output of code that generates if statements might be hard to do if there's more than one, but some code from the while loop tests could probably be reused.
A new issue (#85) has been added that will make easier testing of if/else statements and while loops possible. Until then, I think it's alright to merge this, since nested/multiple if statements have been tested and the code likely won't be modified any time soon.
Closes #83
Adds support for if/else statements. The keyword
runif
was used instead ofif
to avoid conflicting with theexecute if
command.parse_shorthand
run recursively until no if statements/while loops are left