Closed skx closed 6 years ago
NOTE: The specific problem is that PRINT consumes tokens itself, and tries to guess their types.
If you force the expression to be parsed as an expression - not as a number/string (i.e. the leading 3 gets treated as a number) - then it works as it should:
10 PRINT ( 3 + 4 * 5 ) , "\n"
Seems like I should just simplify the print-statement, by making it a built-in. That'd fix the problem by accident.
So this program prints the wrong result:
However, ironically, because of the way we handle builtins this succeeds:
As does the sum if you skip the use of print:
Report here: