Silly little basic-to-ruby compiler
Ruby Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
examples
lib/basic
test
.ruby-version
BASIC
README
TODO

README

Silly basic interpreter in ruby 

 $ ./BASIC

 READY

 > 10 PRINT "THIS IS A BIT SILLY"
 > 20 GOTO 10
 > RUN

Or if you prefer

 $ ./BASIC

 READY

 > LOAD "examples/battle/robotmissile.bas"
 > RUN

examples/battle has programs from Usborne's Computer Battlegames, http://www.computinghistory.org.uk/cgi-bin/sitewise.pl?act=det&p=9739

examples/space programs from Usborne's Computer Spacegames. http://www.computinghistory.org.uk/cgi-bin/sitewise.pl?act=det&p=9740

examples/creepy programs from Usborne's Creepy Computer Games. 

Knock yourselves out.

Requires 'ruby-termios' to be installed.

I talked a bit about it at the London Ruby Users Group in Jan 2011. Video here: https://skillsmatter.com/skillscasts/1879-basic-interpreter