+5
-5
lox/main.janet
+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)