This is a stripped down version of Armin Ronacher's ast module.
Unknown Field: copyright | |
Copyright 2008 by Armin Ronacher. | |
Unknown Field: license | |
Python License. |
Constant | ALL_SYMBOLS |
Undocumented |
Constant | BINOP_SYMBOLS |
Undocumented |
Constant | BOOLOP_SYMBOLS |
Undocumented |
Constant | CMPOP_SYMBOLS |
Undocumented |
Constant | UNARYOP_SYMBOLS |
Undocumented |
Class | NodeTransformer |
Walks the abstract syntax tree and allows modifications of nodes. |
Class | NodeVisitor |
Walks the abstract syntax tree and call visitor functions for every node found. The visitor functions may return values which will be forwarded by the visit method. |
Class | SourceGenerator |
This visitor is able to transform a well formed syntax tree into python sourcecode. For more details have a look at the docstring of the node_to_source function. |
Function | iter_fields |
Iterate over all fields of a node, only yielding existing fields. |
Function | parse |
Parse an expression into an AST node. |