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
25 lines
241 B
Plaintext
25 lines
241 B
Plaintext
funca/
|
|
funcb arg/
|
|
|
|
main:
|
|
declare var
|
|
|
|
calc var funca
|
|
emit "Predeclared without argument: "
|
|
emit var
|
|
emit eol
|
|
|
|
calc var funcb "2"
|
|
emit "Predeclared with argument: "
|
|
emit var
|
|
emit eol
|
|
/
|
|
|
|
funca:
|
|
return "1"
|
|
/
|
|
|
|
funcb arg:
|
|
return arg
|
|
/
|