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

Break and continue #18

Merged
merged 11 commits into from
Aug 29, 2023
Merged

Break and continue #18

merged 11 commits into from
Aug 29, 2023

Conversation

Yag000
Copy link
Owner

@Yag000 Yag000 commented Aug 29, 2023

Pull Request

Description

Add break and continue syntax to the compiler. The interpreter shall no receive updates for now.

Changes Made

break allows us to exit a loo and continue to skip the rest of the loop and go back to the while condition. They compile just to Jump instructions.

Related Issue

Closes #4

Checklist

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

@Yag000 Yag000 self-assigned this Aug 29, 2023
@Yag000 Yag000 merged commit e35ca6a into v0.1.x Aug 29, 2023
1 check passed
@Yag000 Yag000 deleted the break-continue branch August 29, 2023 17:40
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.

1 participant