Brian - Some of the errors you got are the result of the e-mail
processors truncating some longer lines so that it ends up like two
with the second causing an error.
The 'for once' error you got is due to that.
Move it to the above line as part of the comment.
' ....... blank for once'
Since BASIC thinks that line started a FOR loop, there may be several
cascading errors due to a suposedly poor program structure. Fix it and
many of your errors should dissapear.
Sorry about that - I tried to use short lines only to prevent this
problem with beginners copying the from the e-mails. Be sure to check
for the same problem if there are other similar problems - look to see
if the 'weird part' really should be part of the the above line.
Note that you have version 2. You may want to go back to 1a and 1b to
see how it all got started or continue on to parts 3, 4a, and 4b for
extra details. (Part 5 about saving/reading the files is still in the
works.)
Hope this helps...
- Stu
On Nov 10, 2005, at 8:31 PM, Brian Heibert wrote:
> I got this off of the list archives
> It has some errors in it though and I am having trouble fixing them
> This is the BASIC interpreter that Stu Cram made:
>
>
> 'Errors:
> '----
>
> Error: Missing '=' in FOR Stmt
> in file Temp Project at line 529 in cmdBEEP
> •for once•
> Error: NEXT not expected here!
> in file Temp Project at line 547 in cmdBEEP
> •next•
> Error: END FN without LOCAL FN
> Maybe you meant to type END IF?
> in file Temp Project at line 548 in cmdBEEP
> •END FN•
> Error: Structure Stack went negative...
> in file Temp Project at line 548 in cmdBEEP
> •END FN•
>
> '---