Feat: add now can add two full strings Fix: it2 would have different working for emit eof Fix: eq and lt would return bools on it0 and it1 Fix: Functions always return something (there is no such thing as an empty type). Fix: Return value from main is now always ignored. Fix: Output from check is same on all iterations
19 lines
200 B
Plaintext
19 lines
200 B
Plaintext
main:
|
|
declare bool
|
|
set bool ""
|
|
if bool
|
|
emit "empty string is true"
|
|
emit eol
|
|
/
|
|
set bool "1"
|
|
if bool
|
|
emit "1 is true"
|
|
emit eol
|
|
/
|
|
set bool "A"
|
|
if bool
|
|
emit "A is true"
|
|
emit eol
|
|
/
|
|
/
|