Janet implementation of Lox from the book Crafting Interpreters

move scope wrapper around main/process to test

Changed files
+9 -6
lox
test
+5 -5
lox/main.janet
··· 3 3 (import ./interpreter) 4 4 5 5 (defn process [contents] 6 - (with-dyns [] (-> contents 7 - scanner/scan 8 - parser/make-parser 9 - :parse 10 - interpreter/interpret))) 6 + (-> contents 7 + scanner/scan 8 + parser/make-parser 9 + :parse 10 + interpreter/interpret)) 11 11 12 12 (defn run-repl [process] 13 13 (os/sigaction :int nil)
+4 -1
test/test_main.janet
··· 1 1 (use judge) 2 - (use ../lox/main) 2 + (import ../lox/main) 3 + 4 + (defn- process [& args] 5 + (with-dyns [] (main/process ;args))) 3 6 4 7 (test-stdout (process "print 2 * (1 + 2);") ` 5 8 6