On Tue, Apr 9, 2013 at 7:14 AM, Tassilo Horn <t...@gnu.org> wrote: > IMHO, it would be cool if a clojure parser library would use a similar > format (exploiting clojure data structures beyond lists where they make > sense), at least internally. Of course, one could still have other > frontends like for the EBNF you are using which would be translated to > the internal format. >
There already are several clojure parser libraries that rely more heavily on Clojure data structure syntax to define grammars; in fact, that's probably the norm. Instaparse was definitely intended as an alternative to that approach. That said, instaparse definitely uses Clojure data structures internally to represent the parser and provides constructor functions to build them. It would be pretty easy to build other front-ends that translate to its internal format, including one that tries to strike a balance between readability and homoiconicity. -- -- 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/groups/opt_out.