Is there an OpenSource BASIC interpreter in Ruby / Python?
None of those listed in TheFreeCountry are acceptable? None of these are in Python, but I should think that starting with XBLite might be more useful than starting with Yacc / Bison / PLY .
Also, Vb2py may be a better starting position than PLY.
If you must go the PLY route, however, consider the MOLE Basic grammar as a starting point instead of trying to tip your own scratch.
source to share
I also don't know a basic interpreter under ruby, but with enough time and interest, ruby ββeasily "supports" writing an interpreter for any language you like: Developing an Agile DSL in Ruby . I have to admit that this approach comes with some investment of time. :( There are some links at the end of the presentation for further reading about DSL.
source to share
You can also look into the Parrot virtual machine which, according to wikipedia today, has some BASIC support.
source to share