Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.17 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.17 KB

astree

Visualize abstract syntax trees of methods, declarations, expressions, and more

astree.py combines the Python ast module with pydot_ng to draw abstract syntax trees specified in DOT language scripts. An abstract syntax tree is a tree representation of the abstract syntactic structure of source code written in a programming language (e.g. Python).


Jumpstart -- running the program:

  1. Clone repository
  2. $ pip install -r requirements.txt
  3. $ python astree.py

Input modules, methods, declarations, statements, expressions, etc.
View video example here.

For example, let's look at the requests.get method:
>>> Input a method name, expression, etc.:
requests.get

AST visualize requests.get


Note: please report bugs to issues.