Loxby
A Lox interpreter written in Ruby
Loxby is written following the first half of Robert Nystrom's wonderful web-format book Crafting Interpreters, adapting the Java code to modern Ruby. This project is intended to explore what elegant object-oriented code can look like and accomplish.
Usage
gem install loxby
orgem 'loxby'
loxby [filename]
to run a file orloxby
to run in REPL mode- To run the interpreter from Ruby:
ruby require 'loxby/runner' Lox::Runner.new(ARGV, $stdout, $stderr)
License
This gem is licensed under the MIT License. See LICENSE.txt for more.