This is a Ruby 3.x interpreter of the Lox programming language from Crafting Interpreters
- Clone the repo
- Run
bundle install
- Run
bundle exec exe/rubylox lox_programs/fibonacci.lox
or whatever script you want to run.
- Scanning
- Parsing
- Evaluating
- Statements
- Expressions
- Control Flow
- Function Calling
- Function Definition
- Resolving and Binding
- Classes
- Inheritance
- Overall Cleanup
- Better error handling and reporting
- Better test coverage
- CLI REPL
- Extra exercises from the book
- Maybe extra features not in the book
I've run benchmarks against the oficial Java implementation from the book in
my Macbook Air M1 2020. It's uuhh... pretty slow.