Skip to content
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

Implement simple do-while loop functionality #117

Merged
merged 4 commits into from
Jun 25, 2021
Merged

Conversation

matt-kempster
Copy link
Owner

An offshoot of #76, this implements simple do-while loop detection and output.

Should I add a new command-line option to disable this? It does add a new layer of nesting, since goto labels don't take up a nest level. I also don't know what the sentiment about this change is - perhaps it just gets in the way? (Nevertheless, it's important for #76, so that's why I'm breaking it off like this.)

I should probably run this on some entire projects to see what happens, also.

There's at least one confusing part (the secretly=... code), which I plan to document soon, but haven't found the right words to explain properly.

src/if_statements.py Outdated Show resolved Hide resolved
@matt-kempster matt-kempster merged commit 45b6982 into master Jun 25, 2021
@matt-kempster matt-kempster deleted the do_while branch June 25, 2021 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants