ruby_by_ruby is a toy ruby interpreter with RubyVM::AbstractSyntaxTree.
Demo on ruby.wasm
https://tnantoka.github.io/ruby_by_ruby/
interpreter = RubyByRuby::Interpreter.new
interpreter.eval('1 + 1') # => 2
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.