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

While loops #16

Merged
merged 6 commits into from
Aug 16, 2023
Merged

While loops #16

merged 6 commits into from
Aug 16, 2023

Conversation

Yag000
Copy link
Owner

@Yag000 Yag000 commented Aug 14, 2023

Pull Request

Initial implementation of while loops, continue and break are not yet implemented

Description

while loops implementations, with the following syntax:

let a = 0;
while (a < 4) {
    let a = a + 1;
}

Changes Made

  • Test refactoring for the evaluator and parser.
  • Full implementation of while loops.

Related Issue

Moves towards: #4 (break and continue missing)

Checklist

  • I have self-reviewed my code
  • Code follows project's style guidelines
  • Tests added and passing
  • Documentation updated (if needed)

@Yag000 Yag000 added the monkey lang Issues about the monkey language as a whole label Aug 14, 2023
@Yag000 Yag000 self-assigned this Aug 14, 2023
@Yag000 Yag000 linked an issue Aug 14, 2023 that may be closed by this pull request
@Yag000 Yag000 changed the title 4 while loops While loops Aug 16, 2023
@Yag000 Yag000 merged commit 9fd407c into v0.1.x Aug 16, 2023
1 check passed
@Yag000 Yag000 deleted the 4-while-loops branch August 16, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monkey lang Issues about the monkey language as a whole
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add For/while loops to the language
1 participant