mhaupt / basicode

a BASICODE interpreter written in Java
MIT License
2 stars 1 forks source link

parser robustness: ":" at end of line will lead to parser error #5

Closed mhaupt closed 8 months ago

mhaupt commented 8 months ago

Example:

1000 GOTO 20
1010 PRINT "Hello":PRINT "world":
1020 GOTO 950

Line 1010 will crash the parser because the EOL is unexpected at that point.

In my opinion, the parser should be robust enough to ignore this.

mhaupt commented 8 months ago

Fixed.