diff --git a/src/ludus/core.clj b/src/ludus/core.clj index 72f4bbe..5ebf00c 100644 --- a/src/ludus/core.clj +++ b/src/ludus/core.clj @@ -11,7 +11,7 @@ (:gen-class)) (defn- run [file source] - (let [scanned (scanner/scan source)] +(comment (let [scanned (scanner/scan source)] (if (not-empty (:errors scanned)) (do (println "I found some scanning errors!") @@ -25,13 +25,13 @@ (System/exit 66)) (let [interpreted (interpreter/interpret parsed file)] (println (show/show interpreted)) - (System/exit 0))))))) + (System/exit 0)))))))) (defn -main [& args] - (cond +(comment (cond (= (count args) 1) (let [file (first args) source (loader/load-import file)] (run file source)) - :else (repl/launch))) \ No newline at end of file + :else (repl/launch)))) \ No newline at end of file diff --git a/src/ludus/parser.clj b/src/ludus/parser.clj index 9b1612e..7abfbff 100644 --- a/src/ludus/parser.clj +++ b/src/ludus/parser.clj @@ -1224,7 +1224,7 @@ (parser) (parse-script))) -(do +(comment (do (def my-source " data Foo {foo, bar} data Bar as { @@ -1234,7 +1234,7 @@ data Bar as { ") - (::ast (parse (scanner/scan my-source)))) + (::ast (parse (scanner/scan my-source))))) (comment " Further thoughts/still to do: diff --git a/src/ludus/prelude.clj b/src/ludus/prelude.clj index 4936f0a..d2fb63e 100644 --- a/src/ludus/prelude.clj +++ b/src/ludus/prelude.clj @@ -94,13 +94,9 @@ ::data/type ::data/clj :body get}) -(def draw {:name "draw" - ::data/type ::data/clj - :body draw/ludus-draw}) - (def draw {:name "draw" ::data/type ::data/clj - :body d/draw}) + :body d/ludus-draw}) (def prelude {"eq" eq "add" add