-
Notifications
You must be signed in to change notification settings - Fork 4
Runtime Environment
ECMABasic55 has a built-in REPL environment. It's not part of the standard, but it's dead useful for testing.
Run ecmabasic55 with no parameters to get the "OK" prompt.
In addition to entering program lines, and running statements in immediate mode with no line number, you also have access to the following commands:
Wipe out the current program and any variables.
Load a BASIC program file the given FILE PATH. An error will be printed if the file path doesn't exist.
Run the currently loaded program, starting either from program start or the optional line number. An error will be printed if the current program does not define LINE NUMBER.
Continue running on the next line after the last STOP.
- Use
LISTto list out the entire contents of your program. -
LIST [START]will list out only the given line number. -
LIST [START]-will list out the entire program starting at the given line number. -
LIST -[END]will list out the entire program through the line number given. -
LIST [START]-[END]will list out all of the program lines between the 2 end points, inclusive.
Any time a program is running, you can press the key to throw a STOP exception on that line number. The CONT/CONTINUE command can be used to resume execution.