From 884cde5464db94bf2a2ff5047ff495ad3d2c1f12 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sat, 16 Jul 2022 14:17:57 -0700 Subject: [PATCH] add (c)lox from Crafting Interpreters --- lox.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lox.rb 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