8000 GitHub - chp2001/ast2Py: Wrapper module for built-in python library ast
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chp2001/ast2Py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ast2Py

Wrapper module for built-in python library ast. Adds additional functionality to the NodeVisitor and NodeTransformer classes: By including a path argument in all of their methods, the user can use the value of that argument to programmatically reconstruct the syntax tree.

Use Case

The main use case for this module is to allow the user to programmatically take actions on ast nodes based on their locations in the syntax tree, rather than the default behavior of one-size-fits-all actions. For example, the user may want to get a list of all global variables within a file, and they can achieve that by ensuring that there is only an Assignment node between the root node and the node they are currently visiting.

About

Wrapper module for built-in python library ast

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0