6 ms·
For clojure, there's kern (https://github.com/blancas/kern https://github.com/blancas/kern) for parsec style parser combinators. It's quite easy to use. Ironica
by olenhad 12y ago
For clojure, there's kern (https://github.com/blancas/kern https://github.com/blancas/kern) for parsec style parser combinators. It's quite easy to use. Ironically, I actually understood parser combinators better by reading its wiki (By understood, I mean understood how to _use_ parser combinators). Parsec was initially difficult to grasp because the type system complicated things for me then.
I only got Parsec completely after that eureka moment when I finally understood Monads.
- angerman 12y agoWhile not directly monad related. There's also instaparse (https://github.com/engelberg/instaparse https://github.com/engelberg/instaparse) which has also pretty nice presentation. https://www.youtube.com/watch?v=b2AUW6psVcE https://www.youtube.com/watch?v=b2AUW6psVcE I just wanted to leave this here as if it hadn't been for twitter and the presentation, I would likely never have known about it.
- mrottenkolber 12y agoAlso, nobody cares. Since this comment is not even remotely related anymore.
- mrottenkolber 12y agoNobody was talking about Clojure. Do you also have to hijack CL discussions now? Taking over the term "Lisp" wasn't enough?
- mrottenkolber 12y agoYup downvote me. Because this isn't obviously a CL thread. What a nice display of Clojure propaganda, when in a CL thread, a related library is scored lower than a clojure library.
- S4M 12y agoWhy all this hate about Clojure? I didn't downvote you, but I can see why people would, seems olenhad was mentioning a library similar to Parsec in a language that is very related to Common Lisp. There is definitely no need to get carried away.
- lispm 12y agovery related = fully incompatible
- deleted 12y ago[deleted]
- sanderjd 12y agoThings can be both incompatible and related. For any given thing, the set of things related to that thing will typically be bigger than and encompassing of the set of things compatible with that thing.
- lispm 12y agoAbsolutely true. Lisp is related to Fortran, though both are not compatible to each other. Just like Clojure.
- sanderjd 12y agoI guess I don't really get your point. Is Clojure not a pure enough Lisp for your taste, or what? I've used Clojure and CL a similar (small) amount, and they seem incredibly more similar to each other than either of them to Fortran.
- lispm 12y agoFor me languages which are fully incompatible and allow no code sharing are not VERY related. Languages VERY related to CL are Emacs Lisp, ISLisp and some other Lisps in the Lisp 1 / Maclisp tradition.
- marijn 12y agoYou're being downvoted for displaying a primitive tribal attitude about proglangs, not because there's a grand Clojure conspiracy working against you.