-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
A saved BASIC program listing which resembles the following ...
5 :::::::::::::::
10 : REM Hello W :
15 :::::::::::::::
20
25 PRINT "Hello there, World!"
30 GOTO 25
... will currently load into Agon BASIC as the following instead:
5 :::::::::::::::
10 : REM Hello W :
15 :::::::::::::::
This gives the impression that when the LOADer encounters a blank line, such as in Line 20 above, the LOADer believes that the EOF has been reached.
Currently, such BASIC program listings could only be authored outside of Agon BASIC (such as in Nano or in the BBC BASIC IDE), since it is not possible within BBC BASIC to enter a line number without any keywords or tokens and press Enter without it being interpreted as manually deleting a line of BASIC code (whether it exists or not in the listing.
Interestingly, a BBC tokenized program with an empty line does LOAD into Agon BASIC without issue, which leads me to believe that support for BAS program listings with empty lines is merely a limitation of the text loading support of the LOAD command.
SIDE NOTE: If folks wish to be able to enter empty lines of code within Agon BASIC, then the BASIC/MOS editor would need to be enhanced to support the entry of empty line numbers, but it should only support that behavior when the line number does not already exist, otherwise support for manually deleting a line of BASIC code by entering its line number would be broken. An alternative way to support this behavior within Agon BASIC might be to enforce a definition that an empty line of BASIC is a line number followed by at least one space.
Metadata
Metadata
Assignees
Labels
Projects
Status