If you want quick-running (sans JVM/Clojure startup time) and would rather 
stick with the JVM Clojure paradigm over Cljs, I'd highly recommend looking 
at babashka:

https://github.com/babashka/babashka

The setup is super easy, you get access to a lot of the basic JVM classes, 
and it comes with quite a few batteries included. I don't know if 
instaparse is compatible, but there's a good chance that with a little bit 
of work it could be made to be (assuming it isn't already).

I have absolutely loved using it lately for all manner of sundry scripting 
tasks.

Chris



On Monday, June 21, 2021 at 12:01:51 PM UTC-7 Alex Corcoles wrote:

> Actually, while doing some more research I stumbled into:
>
> https://github.com/theasp/parseit
>
> Which is basically what I want to do- and it points to 
> yet-another-build-tool: https://github.com/thheller/shadow-cljs
>
> On Monday, June 21, 2021 at 8:58:18 PM UTC+2 Alex Corcoles wrote:
>
>>
>> I want to develop a CLI tool based on instaparse; basically I want to do:
>>
>> $ instaparse-cli my-grammar.abnf random-file
>>
>> And have that command spout a JSON AST of random-file according to 
>> my-grammar. I would like to distribute this in a convenient way for my 
>> team-mates, without spending a ton of effort in setting up a development 
>> environment + project build system (I'm guessing this will be a very very 
>> short program).
>>
>> My understanding is that Graal + Clojure is not easy right now (from 
>> checking the docs), so although I'm much more familiar with the Java 
>> ecosystem than with the JavaScript ecosystem, I'm thinking ClojureScript + 
>> nexe is the way to go? That would let me produce macOS + Linux + Windows 
>> static binaries that my team-mates can just drop in their path without 
>> installing anything else, I believe.
>>
>> If I go ClojureScript + nexe, is there a good project template for that 
>> or a sample project I can replicate that does something like this? I see 
>> lein, boot, lumo, and others, and it's a bit hard to choose which one is 
>> easiest to use.
>>
>> Thanks,
>>
>> Álex
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/89e6d2aa-bbaa-41e3-8c28-ce41eeea469dn%40googlegroups.com.

Reply via email to