53 lines
952 B
Plaintext
53 lines
952 B
Plaintext
ENABLE leaking
|
|
[TEST]{
|
|
"Jump was successful!"
|
|
--GOTO("HERE")
|
|
}
|
|
[START]{
|
|
"Test 1:"
|
|
-- t=15
|
|
-- test=2*100
|
|
-- test2=[1,2,3,4,"HI"]
|
|
-- test2[5]="HELLO"
|
|
-- "test2 = $test2$"
|
|
-- "test = $test$"
|
|
-- c=5
|
|
-- ::HERE::
|
|
-- a,b="sdf",true
|
|
-- "a,b,c = $a$ $b$ $c$"
|
|
-- food="yum"
|
|
-- test=true
|
|
-- stop=21
|
|
-- "food = $food$"
|
|
-- "test = $test$"
|
|
-- "stop = $stop$"
|
|
-- "Test 2:"
|
|
-- "test2[1] = $test2[1]$"
|
|
-- testM(2+2,"Test")
|
|
-- testM(2+2,test2[5])
|
|
-- count=0
|
|
-- ::loop::
|
|
-- "Count = $count$"
|
|
-- count=count+1
|
|
-- if count>10 then GOTO("end")|GOTO("loop")
|
|
-- ::end::
|
|
-- "Done!"
|
|
--JUMP("CallMe")
|
|
env=CreateENV()
|
|
msg="Hi"
|
|
SetENV(env)
|
|
msg="Hello"
|
|
"IN_HERE $msg$"
|
|
env=GetDefualtENV()
|
|
SetENV(env)
|
|
"OUT_HERE $msg$"
|
|
test=CallMe("This","is a test!")
|
|
"FENV: $test$"
|
|
"Did it work!"
|
|
QUIT()
|
|
}
|
|
[CallMe:function(args1,args2)]{
|
|
"function was called!"
|
|
"CALL_TEST: $args1$ $args2$"
|
|
}
|
|
-- (count==stop and name=="bob") ? GOTO(end) : GOTO(loop) |