skx / gobasic

A BASIC interpreter written in golang.
https://blog.steve.fi/tags/basic/
GNU General Public License v2.0
328 stars 27 forks source link

FOR loop doesn't allow variable for first item. #28

Closed skx closed 6 years ago

skx commented 6 years ago

This works

10 LET MAX=10 20 FOR I = 1 TO MAX

This fails:

10 LET START=0 20 LET ENDING=10 30 FOR I = START TO ENDING

Simple fix.