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 semantic of the Do-While statement #9

Open
meevee98 opened this issue Dec 18, 2019 · 0 comments
Open

Implement semantic of the Do-While statement #9

meevee98 opened this issue Dec 18, 2019 · 0 comments

Comments

@meevee98
Copy link
Owner

Do-While is one of the control flow statements that consists in the repetition of a block of instruction while the given Boolean condition is false. The difference between it and the while statement is that while has a pre-condition and do-while has a pos-condition. That means that the do-while statement executes its block of instructions at least once.

This is the syntax of the do-while loop in the PNP language:

repita
    <block of instructions>
ate que <condition>;

The Java implementation that it's been refactored already have an implementation of the do-while statement. We have to refactor it to Kotlin too.

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

No branches or pull requests

1 participant