Closed mcvde closed 1 year ago
Thanks for your report! I think this happens because I don't really support spaces around '=' (and other operators). You basically have to enter BASIC programs like the LIST command would print them out.
But there is no reason why I shouldn't relax this -- in fact, I already did that for assembly and GPL, so I really should do it for BASIC as well.
I'll be working on this.
Cool. That will be a very nice fix.
The following example shows two instances of the same problem:
[69] IF SP = 0 THEN SP = I Error: Unknown label SP [90] IF WPV = 0 THEN WPV = 1 :: WPH = 1 Error: Unknown label WPV
Removing the trailing space behind the variable being assigned a value eliminates the behavior. Correcting the input code to: IF SP = 0 THEN SP= I IF WPV = 0 THEN WPV= 1 :: WPH = 1
Note that in the second line, there are two assignments made; only the first assignment has this problem.
Appears the variable name collected in the bad condition includes a space.
This is a fine application and replaces a more crude version I wrote.