diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -13,17 +13,17 @@ Since 0.18, it provides a compatible representation which may come from the `compiler` module (for python <= 2.4) pr the `_ast` module (for python >= 2.5). -It extends bare node classes with some additional methods and -attributes. Instance attributes are added by a builder object, which -can generate extended ast (let's call them astng ;) by visiting either -an existent ast tree or by inspecting living object. Methods are added -by monkey patching ast classes. Finally some support for static -inference is provided. +It rebuilds the tree generated by the compiler.ast [1] module or by +the builtin _ast module by recursively walking down the AST and +building an extended ast (let's call it astng ;). The new node classes +have additional methods and attributes for different usages. +They include some support for static inference and local name scopes. +Furthermore, astng builds partial trees by inspecting living objects. Main modules are: -* `nodes` and `scoped_nodes` for more information about methods and - attributes added to different node classes +* `bases`, `node_classses` and `scoped_nodes` contain the classes for the + different type of nodes of the tree. * the `manager` contains a high level object to get astng trees from source files and living objects. It maintains a cache of previously |