Re: [pro] Lisp and DSLs

2011-07-21 Thread Alexander Repenning
XML, good point. XMLisp combines S-expressions and XML into X-expression via CLOS, MOP, Lisp reader and Lisp printer: - paper: http://www.cs.colorado.edu/~ralex/papers/PDF/X-expressions.pdf - code (all in one file) http://code.google.com/p/xmlisp/source/browse/trunk/XMLisp/sources/XMLisp/XMLisp.l

Re: [pro] Lisp and DSLs

2011-07-21 Thread Marco Antoniotti
Another cut example I did many years ago (showing my NYU colors) along the lines of what Pascal shows here is the "SETL syntax" in CL. I still have the code. Here is the stupid PRIMES (defun primes (max) [n in (range 3 max 2) such-that (not (exist m in (range 3 (min (1- n) (+ 2 (sqrt n)))

Re: [pro] Lisp and DSLs

2011-07-21 Thread Marco Antoniotti
Well, since we are talking about XML stuff, I have another shameless plug myself then :) http://within-parens.blogspot.com/2011/06/printing-xhtm.html All in all the pretty-printer is very nice, it'd be nice to have an agreed upon jazzed up version of CLOS dispatching. Cheers MA On J