diff --git a/lox.rb b/lox.rb new file mode 100644 index 0000000..f822308 --- /dev/null +++ b/lox.rb @@ -0,0 +1,15 @@ +class Lox < Formula + desc "The Lox language from Crafting Interpreters" + homepage "https://craftinginterpreters.com/the-lox-language.html" + license "MIT" + head "https://github.com/munificent/craftinginterpreters.git" + + def install + system "make clox" + bin.install "clox" + end + + test do + system "lox" + end +end