Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 639 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 639 Bytes

Ruby by Ruby

ruby_by_ruby is a toy ruby ​​interpreter with RubyVM::AbstractSyntaxTree.

Demo on ruby.wasm

https://tnantoka.github.io/ruby_by_ruby/

Usage

interpreter = RubyByRuby::Interpreter.new
interpreter.eval('1 + 1') # => 2

Development

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.

Acknowledgments

https://www.lambdanote.com/products/ruby-ruby