kurz/tests/test.qbl

39 lines
390 B
Plaintext
Raw Normal View History

2022-12-14 09:34:49 +01:00
//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
}
2022-12-14 04:12:03 +01:00
"test2" print 1
check
print
function int => str check
{
if
{
"True"
}
else
{
"False"
}
}
function int => whileFunction
{
while
{
1 - "test" req print
}
deq
}
2022-12-14 09:34:49 +01:00
3 whileFunction