richpl / PyBasic

Simple interactive BASIC interpreter written in Python
GNU General Public License v3.0
170 stars 46 forks source link

Micropython #62

Closed RetiredWizard closed 2 years ago

RetiredWizard commented 2 years ago

It turns out on some of the microcontroller boards I'm running PyDOS there is actually enough memory to run your version of PyBasic without my memory optimizations which does run faster. There were only a couple of minor tweaks needed for micropython compatibility which I've included in this pull request.

During testing I stumbled on a few missing lines in the Oregon Trail program and threw in an update to program.py which avoids a problem if blank statements (unnumbered or numbered) are encountered when loading a .BAS file.

The micropython updates are pretty tame, but if you're not interested in them, you can just use the others, or let me know and I'll break this PR up into three separate ones :)