class documentation
A class representing the MMBasic interpreter for Picoware.
| Method | __init__ |
Initialize the MMBasic interpreter with view manager colors. |
| Method | run |
Poll buttons, tick the interpreter, redraw the console/graphics. |
| Method | start |
Run the provided MMBasic source code. |
| Class Variable | __slots__ |
Undocumented |
| Property | is |
True when the program has reached a terminal state (END/STOP). |
| Method | _feed |
Feed a button press into the interpreter as a character. |
| Instance Variable | _over |
Undocumented |
| Instance Variable | _present |
Undocumented |
| Instance Variable | _present |
Undocumented |
| Instance Variable | _view |
Undocumented |
Initialize the MMBasic interpreter with view manager colors.
| Parameters | |
viewViewManager | The ViewManager instance for the app. |
presentint | Ticks between graphics screen updates. Defaults to 20. |
Poll buttons, tick the interpreter, redraw the console/graphics.
Returns False when the program is over (END/STOP) or the user pressed BACK, so the host app can return to the menu. Graphics programs keep their final image on screen (the app shows it until BACK is pressed).
Run the provided MMBasic source code.
| Parameters | |
source:str | The MMBasic source code to run. Defaults to None. |
path:str | Path to a file containing MMBasic source. Defaults to None. |
| Returns | |
bool | True if the program started successfully. |