2022-12-14 09:34:49 +01:00
|
|
|
//valid
|
|
|
|
//output: Hello, World!\n4242test2Falsetesttesttest
|
|
|
|
|
2022-12-05 00:38:20 +01:00
|
|
|
"Hello, World!\n" print 43 foo foo deq
|
|
|
|
|
|
|
|
|
|
|
|
// Dequeues, enqueues 42 and 17, prints the head
|
|
|
|
function any => int foo
|
|
|
|
{
|
|
|
|
deq 42 17 print
|
|
|
|
}
|
|
|
|
|
2022-12-14 04:12:03 +01:00
|
|
|
"test2" print 1
|
|
|
|
check
|
|
|
|
print
|
|
|
|
|
|
|
|
|
|
|
|
function int => str check
|
|
|
|
{
|
|
|
|
if
|
|
|
|
{
|
|
|
|
"True"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
"False"
|
|
|
|
}
|
2022-12-14 07:57:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function int => whileFunction
|
|
|
|
{
|
|
|
|
while
|
|
|
|
{
|
|
|
|
1 - "test" req print
|
|
|
|
}
|
|
|
|
deq
|
|
|
|
}
|
|
|
|
|
2022-12-14 09:34:49 +01:00
|
|
|
3 whileFunction
|