thx
anyone know how to use a reader
to read full clojurescript source?
this claims to do it: https://github.com/clojure/tools.reader
but i'm not sure a) if that is a "compatible library" and b) how to include dependencies like that in lumo
@johanatan https://github.com/anmonteiro/lumo/blob/master/src/cljs/snapshot/lumo/repl.cljs#L950
something like this?
(`tools.reader` is bundled with Lumo)
ooh, nice!
yep, that should do it
any idea how the following would lose the quotes around strings?:
(doseq [l (r/read-string (format "( %s )" (clojure.string/join " " file)))] (println l))
where file
is a sequence of the lines of a filethis seems to be the crux of the problem:
cljs.user=> (r/read-string "(func \"blah\")")
(func "blah")
cljs.user=> (println *1)
(func blah)
nil
ah
prn
is the answer