- Notifications
You must be signed in to change notification settings - Fork3
Visualize abstract syntax trees of methods, declarations, expressions, and more
License
NotificationsYou must be signed in to change notification settings
irahorecka/astree
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
astree.py
combines the Pythonast
module withpydot_ng
to draw abstract syntax trees specified in DOT language scripts.An abstract syntax tree is a tree representation of the abstractsyntactic structure of source code written in a programming language (e.g. Python).
Jumpstart -- running the program:
- Clone repository
$ pip install -r requirements.txt
$ python astree.py
Input modules, methods, declarations, statements, expressions, etc.
View video examplehere.
For example, let's look at therequests.get
method:>>> Input a method name, expression, etc.:
requests.get
Note: please report bugs toissues.