-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Pull Request <!-- Provide a general summary of your changes in the title above --> <!-- Optional fields can be removed if not applicable --> Initial implementation of while loops, `continue` and `break` are not yet implemented ## Description `while` loops implementations, with the following syntax: ```monkey let a = 0; while (a < 4) { let a = a + 1; } ``` <!-- Briefly describe the purpose of this pull request. --> ## Changes Made <!-- Summarize the changes you've made in this pull request. --> - Test refactoring for the evaluator and parser. - Full implementation of while loops. ## Related Issue <!-- Optional --> <!-- Link to the related issue, e.g., "Closes #123" or "Fixes #456" --> Moves towards: #4 (`break` and `continue` missing) ## Checklist - [x] I have self-reviewed my code - [x] Code follows project's style guidelines - [x] Tests added and passing - [x] Documentation updated (if needed)
- Loading branch information
Showing
17 changed files
with
1,622 additions
and
1,286 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.