Re: Clojure rookie vs parsing

2017-08-24 Thread sventrax001
Thanks so much for the useful and informative advice. Again due to my rookie-ness I was struggling to adapt my old ANTLR grammar to instaparse (and did not come back to read new feedback bad me). While from the docs instaparse offers more flexibility than ANTLR, the cost is dealing with much

Re: Clojure rookie vs parsing

2017-08-16 Thread Gregg Reynolds
On Aug 15, 2017 7:11 AM, wrote: Hi Months ago I read a review that praised Clojure's clean approach and use of JVM that is almost always available in my deployments. My background: started with 370 assembly hoorah! HCF! (check out boot - JCL, done right!) What I

Re: Clojure rookie vs parsing

2017-08-16 Thread Alan Thompson
While Instaparse is (IMHO) the best parser for use with Clojure, you don't have to start from such a low level (i.e. parsing a char stream text file). Just re-write your original problem a little and you can skip writing a custom parser. In Clojure, perhaps the most popular format (certainly the

Re: Clojure rookie vs parsing

2017-08-15 Thread dennis zhuang
In my experience, instaparse + defun is a good choice. https://github.com/Engelberg/instaparse https://github.com/killme2008/defun/ 2017-08-15 22:02 GMT+08:00 Gary Trakhman : > I enjoyed working with clj-antlr recently, it's a wrapper over a java > library, but gives

Re: Clojure rookie vs parsing

2017-08-15 Thread Gary Trakhman
I enjoyed working with clj-antlr recently, it's a wrapper over a java library, but gives you a fast feedback loop with an interpreter instead of generated java code. The 'clojurey' part is that the output is a nested sequence, from there it's really effective to use tree zippers and core.match to

Re: Clojure rookie vs parsing

2017-08-15 Thread Laurens Van Houtven
Hi, Instaparse is a great parser generator, especially if you already have a BNF. Sent from my iPhone > On Aug 15, 2017, at 08:44, sventrax...@gmail.com wrote: > > Thanks for your input. LFE is quite an unexpected "thing". > > What I'm trying to do, is just a "lunch time project"; something

Re: Clojure rookie vs parsing

2017-08-15 Thread sventrax001
Thanks for your input. LFE is quite an unexpected "thing". What I'm trying to do, is just a "lunch time project"; something that I can target without corporate constrains just as a learning exercise. Furthermore I can test the Clojure version against my old working Java version. As I was

Re: Clojure rookie vs parsing

2017-08-15 Thread adrians
If you need the features of Erlang but would like that in a Lisp (not Common Lisp, though) environment, have you taken a look at LFE (Lisp Flavored Erlang)? I'm not trying to discourage you from looking at Clojure, but if you need/depend on some of the features of Erlang, LFE might be a closer

Clojure rookie vs parsing

2017-08-15 Thread sventrax001
Hi Months ago I read a review that praised Clojure's clean approach and use of JVM that is almost always available in my deployments. My background: started with 370 assembly ( so I'm not young!!!) and during the last four years I've been using Erlang for network applications. For my type