[pro] Lisp and DSLs

Steve Haflich shaflich at gmail.com
Wed Jul 20 21:51:13 UTC 2011


You might want to examine
https://github.com/franzinc/net-xml-generatorwhich is (sort-of) a DSL
for generating and pretty-printing XML. It uses
reader macros and the pretty-printer so that XML elements can be freely
intermixed and nested inside Lisp code. (Unlike HTML, XML has an unbounded
set of tags, so defining a finite set of keywords won't work.)
Download the zip and view the xhtml blurb in a browser. It
self-referentially contains the Lisp code that generated it, which is
probably harder to do in other languages.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20110720/6edce23d/attachment.html>


More information about the pro mailing list