basic: parsing FOR statement, FOR itself still broken :(

This commit is contained in:
minjaesong
2020-12-13 11:19:08 +09:00
parent 5a09c4915d
commit e106327b4b
3 changed files with 66 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ linenumber = digits ;
stmt =
"IF" , expr_sans_asgn , "THEN" , stmt , ["ELSE" , stmt]
| "FOR" , expr // TODO
| "FOR" , expr
| "DEFUN" , [ident] , "(" , [ident , {" , " , ident}] , ")" , "=" , expr
| "ON" , expr_sans_asgn , ("GOTO" | "GOSUB") , expr_sans_asgn , {"," , expr_sans_asgn}
| "(" , stmt , ")"