kurz/tests/test.qbl
2022-12-14 09:34:49 +01:00

39 lines
390 B
Plaintext

//valid
//output: Hello, World!\n4242test2Falsetesttesttest
"Hello, World!\n" print 43 foo foo deq
// Dequeues, enqueues 42 and 17, prints the head
function any => int foo
{
deq 42 17 print
}
"test2" print 1
check
print
function int => str check
{
if
{
"True"
}
else
{
"False"
}
}
function int => whileFunction
{
while
{
1 - "test" req print
}
deq
}
3 whileFunction