python abstract syntax trees
MarkH at ActiveState.com
Thu Feb 8 01:31:27 CET 2001
Joshua Marshall wrote:
> In ther parser module, expr and suite return concrete syntax trees.
> Does anyone know of any quick routines that build more minimal abstract
> syntax trees?
Check out the "compiler" project - the source code exists in the CVS
tree, and I believe may be in the normal Python 2.1 distro. It uses an
AST flattening module before working with the tree. The Python for .NET
compiler uses the exact same code, and it was all based on "p2c"'s effort.
More information about the Python-list