A Clojure program to interpret a very narrow subset of Ruby.
Written for the Reddit daily programmer challenge
lein run path-to-ruby-code.rb
Remember that it's unlikely that any arbitrary Ruby code will work. An
example.rb
file is included that should work, but you should try the
Brainfuck interpreter from my other project, ruby-brainfuck.
There should be exceptions thrown for bad input, but they aren't very easy to read!
Many thanks to the instaparse library, which took care of all the heavy lifting of parsing!
Copyright © 2014 Jake Goulding
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.