Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Silly little basic-to-ruby compiler
Ruby Visual Basic Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples
lib/basic
scratchpad
test
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 'termios' to be installed.

I talked a bit about it at the London Ruby Users Group in Jan 2011. Video here: http://webmail.skillsmatter.com/podcast/nosql/basic-interpreter

Also, you might find the commit tagged STABLE works best.
Something went wrong with that request. Please try again.