-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add if/else statements #84
Conversation
This should make it easier to reuse that code in case of similar statements being added in the future
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. |
This reverts commit 8afd0ec.
Fixes some problems in #84 that weren't noticed
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