tags:

views:

348

answers:

2

Is there any DSL (Domain Specific Language) implemented in Clojure ?

+2  A: 

SQL DSL in Clojure

Boris Pavlović
This one is impressive. It pointed to me the importance of this language...
Diego Sevilla
+25  A: 

Like any Lisp dialect, Clojure draws a very fuzzy line between API and DSL and therefore the term doesn't hold the same mystique that it does in other languages. Lisp programmers tend to write their programs as layers of DSLs, each layer serving those above it. Having said that, here are a few that you could say display non-trivial levels of DSL-ness (in no particular order):

fogus
can you please put a description beside each of those, so we know the domain they belong to ?
Belun
Oh wow! Thanks David.
fogus
Great list! One could also consider leiningen to be a DSL
Jonas
@Jonas I guess you're right. Added.
fogus
@fogus While it certainly may not be a 'good' example of a DSL, my IRC bot's defplugin macro is a DSL for creating sexpbot plugins. You can find examples of it in use in src/sexpbot/plugins and the actual implementation in src/sexpbot/respond.clj. You can add it to the list if you'd like. I'd rather not create a whole new answer just to add it, since yours is so excellent.
Rayne