What to use for adding syntax for hierarcical trees, metaclasses, tokenize.py or PLY?

Michele Simionato michele.simionato at gmail.com
Tue May 9 14:22:10 CEST 2006

glomde wrote:
<questions on how to extend Python syntax>

You should look at the compiler package and at the new AST in Python
For easy things tokenize could be enough, though. Notice that in Python
2.5 tokenize
grew a new 'untokenize' function which is pretty useful. See
http://docs.python.org/dev/lib/module-tokenize.html for examples.

       Michele Simionato

More information about the Python-list mailing list