kin-lang / kin

Kin Programming Language

Home Page:https://kinlang.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] : Loop control statements: `break`

pacifiquem opened this issue · comments

file : src/runtime/eval/statements.ts, on eval_loop method.

break : this keyword will stop kin's loop.
continue : this keyword will skip current iteration and go to the next one.

5/8

We'll start to work on this once #146 is resolved.

We'll use these keyworks for continue and break in kin as per @ndungtse in #146 (comment)

Continue will be worked on in #161