2 ms·
nevow.stan did that back in 2004 :) https://github.com/twisted/nevow/blob/master/nevow/stan.py https://github.com/twisted/nevow/blob/master/nevow/stan.py
by baq 9y ago
nevow.stan did that back in 2004 :)
https://github.com/twisted/nevow/blob/master/nevow/stan.py https://github.com/twisted/nevow/blob/master/nevow/stan.py
- emidln 9y agonevow.stan uses objects to represent its ast. This isn't the same because it misses the point: objects aren't data in python (or most places, since objects are rarely printable/readable). Practical Common Lisp demonstrates a spiritual predecessor that works on data from 2003[0]. I'm sure there are much older implementations floating around for CL and Scheme but I don't care to look for them. This is a common idiom in lisps. [0] http://www.gigamonkeys.com/book/practical-an-html-generation-library-the-interpreter.html http://www.gigamonkeys.com/book/practical-an-html-generation...