Hi all. Can one “require” a non planck core namespace into planck? In my case, instaparse.
Sure, so long as it is self-host compatible, and on the Planck classpath
You’d do planck -c path-to-instaparse.jar
Ah,
ok.
In my case, I am launching planck from within my (boot) project directory.
For that project, I have “required” instaparse via build.boot.
Assuming the jar has been downloaded at “boot dev” time and must now be somewhere within system. Haven’t looked into that but thanks for the hint. Will search.
Planck needs to somehow be told where to look for source. The mechanisms are documented here: http://planck-repl.org/dependencies.html
Clear. Yes. Now trying to determine where “retrieved” jars are stashed. Assuming this will be the path I will have to provide to planck.
Probably under .m2
boot show -c
should reveal where they are
Excellent.
Thanks.
And yes, was under .m2
Now having to deal with the 692 errors reported at require time inside planck but it’s a start. 🙂
Perhaps Instaparse hasn’t been ported for use with self-hosted ClojureScript
Possibly. Not a light lib.
Seems like a wee-bit of overkill when all I want to is turn a string with embedded brackets into a vector (of keywords and/or sub-vectors).
Genre…
”a b (c d)”
into [:a :b [:c :d]]
But so far this is what I have been pointed towards and it does make sense.
It’s parsing after all. 🙂