2017-08-21 19:23:03 -04:00

30 lines
465 B
Plaintext

ENABLE leaking
[TEST]{
"Jump was successful!"
--GOTO("HERE")
}
[START]{
"Test 1:"
num=ADD(5,5)
"num = $num$"
c=5
::HERE::
a,b="sdf",true
"a,b,c = $a$ $b$ $c$"
food="yum"
test=true
stop=21
"Test 2:"
count=0
::loop::
if count>10 then GOTO("end")|GOTO("continue")
::continue::
"Count = $count$"
count=ADD(count,1)
if count>10 then GOTO("end")|GOTO("loop")
::end::
"Done!"
QUIT()
}
-- (count==stop and name=="bob") ? GOTO(end) : GOTO(loop)