From 99768e30f4f46e8fb96b5f6ba171bd2e7c0f0667 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