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

Implemented for of loop, break, and continue #58

Merged
merged 7 commits into from Oct 24, 2022
Merged

Conversation

Andndre
Copy link
Contributor

@Andndre Andndre commented Oct 24, 2022

Hey, I hope this helps a little. Maybe the keyword that I chose can be changed later.

Preview

fomo semua foo dari bar
  kalo foo itu 3
    skip
  perhaps foo itu 5
    spill "Loop diakhiri"
    stop
  udahan
  spill foo
udahan

// transforms to
for (const foo of bar) {
  if (foo == 3) {
    continue;
  } else if (foo == 5) {
    console.log("Loop diakhiri");
    break;
  }
  console.log(foo);
}

Fix : Variable naming rules (commit )

@RioChndr
Copy link
Owner

Nice fix. I'll check it later

@RioChndr
Copy link
Owner

Nice fix. please add new command to Command.md

@Andndre
Copy link
Contributor Author

Andndre commented Oct 24, 2022

Nice fix. please add new command to Command.md

Done

@RioChndr RioChndr merged commit 7a02d61 into RioChndr:main Oct 24, 2022
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.

None yet

2 participants