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

Michele Simionato michele.simionato at gmail.com
Tue May 9 08:22:10 EDT 2006


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

You should look at the compiler package and at the new AST in Python
2.5.
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