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
28 lines
420 B
Plaintext
28 lines
420 B
Plaintext
main:
|
|
declare result
|
|
emit "lt A A: "
|
|
calc result lt "A" "A"
|
|
emit result
|
|
emit eol
|
|
emit "lt A B: "
|
|
calc result lt "A" "B"
|
|
emit result
|
|
emit eol
|
|
emit "lt B A: "
|
|
calc result lt "B" "A"
|
|
emit result
|
|
emit eol
|
|
emit "lt AA AA: "
|
|
calc result lt "AA" "AA"
|
|
emit result
|
|
emit eol
|
|
emit "lt AA AB: "
|
|
calc result lt "AA" "AB"
|
|
emit result
|
|
emit eol
|
|
emit "lt AB AA: "
|
|
calc result lt "AB" "AA"
|
|
emit result
|
|
emit eol
|
|
/
|