skx / gobasic

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

FOR command doesn't allow expressions #107

Closed skx closed 5 years ago

skx commented 5 years ago

This works:

FOR I = 1 TO 10 STEP 4/2
   PRINT I
NEXT I

This does not:

FOR I = 1 TO 3 * 4
   PRINT I
NEXT I