corth-lang / Corth

A self-hosted stack based language like Forth
MIT License
7 stars 1 forks source link

`break` stacking #13

Open HuseyinSimsek7904 opened 9 months ago

HuseyinSimsek7904 commented 9 months ago

'break' keyword should be stackable. This will allow a statement to directly break a parent loop.

For example:

while true do  // this is loop#1
  while true do // this is loop#2
    break break // this will break both loop#2 and loop#1
  end
end