Hi all,

I've released an alpha quality Clojurescript port of Mark Engelberg's
fantastic parsing library, Instaparse
(https://github.com/Engelberg/instaparse). The Clojure code is still
retained in this project, so it is still Clojure compatible. Once
battle tested, the aim is to merge this upstream.

You can use it via the leiningen coordinates:
[com.lucasbradstreet/instaparse-cljs "1.3.4.2"]
and can find the code here:
https://github.com/lbradstreet/instaparse-cljs

A few points of difference between the Clojure and Clojurescript
versions of this library:

* Visualisation is not supported as it depends on Rhizome on the JVM.
* Slurping grammars is not supported, as slurp cannot be used from
clojurescript.
* The Clojurescript version is slower by approximately a magnitude
(tested with V8, :advanced compile). Performance with optimizations
:none will be slower by around another factor of 3. Please let me know
if you are using a grammar that performs especially badly in the
Clojurescript version compared to the Clojure version. Any help with
optimizations here would be appreciated. Note that some grammars will
have a large upfront initial parsing cost that could be prohibitive
for some client side use cases. Note that you can serialize the parsed
grammars and load them client side, avoiding this cost.
* You will probably require a recent version of Clojurescript. I have
not tested it against old versions.

This work would not have been possible without the previous work by
Russell Mull (https://github.com/mullr) and Ryan Berdeen
(https://github.com/also/).

Please let me know if you encounter any issues at all. All the tests
pass and it works for my parsers, but I'm sure there are some issues
lurking.

Cheers,

Lucas

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to