No, you're exactly right.  Leaving aside the obvious utility of being able to 
consume non-sexpr-structured content/data, there are plenty of domains for 
which s-expressions are not optimal, or even well-suited.  Though s-expressions 
make things a lot easier for "us", they are not the only lens through which the 
world can (or should) be viewed.

Cheers,

- Chas

On Mar 5, 2011, at 2:35 PM, Timothy Washington 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 

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