davidcallanan / py-myopl-code

Interpreter for the BASIC language written in Python 3
MIT License
469 stars 326 forks source link

Created startings of standard library #1

Closed AdrianGjerstad closed 4 years ago

AdrianGjerstad commented 5 years ago

I heard about the things you wanted to do with this language, and one of the was to make a standard library for it. So I wanted to try and make a preview of it! You can find it at /stdlib/string.myopl. To include it in a pre-existing program, you can run RUN("stdlib/string.myopl"), and then use the functions that are inside.

I didn't know if the fact that variables stay after running RUN was a bug or not, but it has become very useful if it was a bug. If you have any questions, just comment on this pull request. Thanks!

davidcallanan commented 4 years ago

Hi @AdrianGjerstad thanks for your pull request! It's amazing to see this done. I'd like to move on from this project now and keep it as is, so I'll close for now and I'll add a link to your fork for others to see.