Closed skx closed 5 years ago
Since LET is currently optional (I might reconsider, and #80 does make a good case) this should show an error:
10 A = 3
It does not:
frodo ~ $ cat t.bas 10 A = 3 frodo ~ $ gobasic t.bas frodo ~ $ frodo ~ $ gobasic -trace=true t.bas RunOnce( Token{Type:LINENO Value:10} ) RunOnce( Token{Type:IDENT Value:A} ) RunOnce( Token{Type:INT Value:3} )
Here it is calling RunOnce with an IDENT token - which then gets evaluated via the default branch and results in no-error (which is a surprise).
RunOnce
IDENT
default
Reported as it happened, indirectly in #85.
Since LET is currently optional (I might reconsider, and #80 does make a good case) this should show an error:
It does not:
Here it is calling
RunOnce
with anIDENT
token - which then gets evaluated via thedefault
branch and results in no-error (which is a surprise).