Implemented break and continue and improved label stack handling
This commit is contained in:
parent
ace8222b7e
commit
1606150450
3 changed files with 97 additions and 14 deletions
11
flagpole/tests/break.fp
Normal file
11
flagpole/tests/break.fp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$inc fvmstd.fp
|
||||
|
||||
proc main
|
||||
while 1 do
|
||||
if :getuint 37 == then
|
||||
break
|
||||
endif
|
||||
"Try again" :puts :newline
|
||||
endwhile
|
||||
"You got it!" :puts :newline
|
||||
endproc
|
||||
Loading…
Add table
Add a link
Reference in a new issue