You're not missing anything. In a lisp DSL, the L is a figure of speech, for it's still lisp. Sure, lisp libraries can have great ease and convenience as if they came with the language, but it won't be a different language altogether --i.e., something that it ain't lisp. Last year I wrote a little scripting module for the core postscript and parsed it with antlr. As you point out, Clojure handles a bunch of data with their respective parsers, and you'll need to provide your own or a third party as needed.
On Mar 5, 11:35 am, Timothy Washington <twash...@gmail.com> wrote: > Indeed :) > > I've actually been thinking about that. And from what I can tell, LISP DSLs > are simply extensions to the LISP language. But maybe I still haven't gotten > my head wrapped around '*defmacros*' and how they implements DSLs. It seems > to me though, that someone could still want to parse *SQL* or *XQuery* or > any *non-s-expression grammar*. And I don't see how to do that with '* > defmacros*'. So, clojure does currently handle non s-expression grammars, > but... > > - XML - uses Java's xml parser facility > - Regex - is handled by Java's regex facility > - etc > > Am I missing something here? From what I can tell, you'd still need an > outside library, or Parser Generator (BNF or otherwise), to handle something > like SQL or XQuery. > > Thanks > > Tim Washington > twash...@gmail.com > 416.843.9060 > > > > On Sat, Mar 5, 2011 at 12:35 AM, Ken Wesson <kwess...@gmail.com> wrote: > > On Fri, Mar 4, 2011 at 10:50 PM, Timothy Washington <twash...@gmail.com> > > wrote: > > > I can tell you the tools that I'm investigating: > > > A) From what I can tell, there's no standard (E)BNF parser generator for > > > clojure. > > > Who needs an (E)BNF parser generator when you've got defmacro? ;) > > > -- > > 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- Hide quoted text - > > - Show quoted text - -- 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