Ruby implementation of the Monkey Language
Pepa has many sibling implementations
The book (Writing An Interpreter In Go) is fully implemented. Pepa will not have a compiler implementation
Before running the command you must have Ruby 3.1.0 or up installed on your machine
Script | Description |
---|---|
rake |
Run tests and rubocop |
./exe/benchmark |
Run the classic monkey benchmark (fibonacci(35) ) |
./exe/benchmark-yjit |
Run the classic monkey benchmark with JIT(fibonacci(35) ) |
./exe/benchmark-tr |
Run the classic monkey benchmark transpiled to Ruby(fibonacci(35) ) |
./exe/benchmark-tr-yjit |
Run the classic monkey benchmark transpiled to Ruby with JIT(fibonacci(35) ) |
./exe/pepa |
Run the Pepa REPL |