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

else keyword after while-do statement #23

Open
HuseyinSimsek7904 opened this issue Nov 28, 2023 · 0 comments
Open

else keyword after while-do statement #23

HuseyinSimsek7904 opened this issue Nov 28, 2023 · 0 comments
Assignees
Labels
compiler Anything about the compiler enhancement New feature or request

Comments

@HuseyinSimsek7904
Copy link
Member

Just like in Python, Corth should allow while <cond> do <code> else <code> end statements where the code after the else keyword is run only if the while-do loop is not broken with break. This will be very easy to implement as compiler creates a label for that purpose already.

@HuseyinSimsek7904 HuseyinSimsek7904 added the enhancement New feature or request label Nov 28, 2023
@HuseyinSimsek7904 HuseyinSimsek7904 self-assigned this Nov 28, 2023
@HuseyinSimsek7904 HuseyinSimsek7904 added the compiler Anything about the compiler label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Anything about the compiler enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant