Improve importing

This commit is contained in:
0x4261756D
2023-02-06 15:00:37 +01:00
parent 131386632f
commit 5aa365c681
4 changed files with 20 additions and 37 deletions

View File

@ -11,17 +11,7 @@
//true
//:END:
function bool => str boolToStr
{
if
{
"true"
}
else
{
"false"
}
}
import "../std.qbl"
1 0 > boolToStr println
1 0 < boolToStr println
@ -33,4 +23,4 @@ function bool => str boolToStr
1 1 < boolToStr println
1 1 >= boolToStr println
1 1 <= boolToStr println
1 1 == boolToStr println
1 1 == boolToStr println

View File

@ -0,0 +1,5 @@
//valid,false
//:END:
import "basic_import.qbl"
false boolToStr println

View File

@ -1,6 +1,8 @@
//valid,10987654321falsefalse
//:END:
import "../std.qbl"
true while
{
false
@ -16,20 +18,8 @@ while
}
deq
function bool => str boolToStr
{
if
{
"true"
}
else
{
"false"
}
}
true true true while
{
false
}
boolToStr boolToStr print println
boolToStr boolToStr print println