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
>

-- 
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

Reply via email to