kurz/tests/test.qbl

43 lines
441 B
Plaintext
Raw Normal View History

2022-12-18 04:05:50 +01:00
//valid,Hello, World!
//4242test2Falsetesttesttest:END:
2022-12-14 09:34:49 +01:00
2023-01-05 00:19:29 +01:00
"Hello, World!" println 43 foo foo deq
// Dequeues, enqueues 42 and 17, prints the head
2022-12-31 16:09:55 +01:00
function int => int foo
{
2022-12-31 16:09:55 +01:00
deq 42 17 intToStr req print
}
2022-12-14 20:39:51 +01:00
"test2" print false
2022-12-14 04:12:03 +01:00
check
print
2022-12-14 20:39:51 +01:00
function bool => str check
2022-12-14 04:12:03 +01:00
{
if
{
"True"
}
else
{
"False"
}
}
function int => whileFunction
{
2022-12-14 11:46:47 +01:00
dup
2022-12-14 20:39:51 +01:00
0 req >
req while
{
2022-12-14 20:39:51 +01:00
1 - 0 dup >
"test" req req print req
}
deq
}
2023-01-05 00:19:29 +01:00
3 whileFunction