项目作者: salt-die
项目描述 :
A pretty printer for python abstract syntax trees.
高级语言: Python
项目地址: git://github.com/salt-die/prettiest_ast.git
prettiest_ast
A simple pretty printer for python abstract syntax trees:
>>> from prettiest_ast import ppast
>>> ppast('for i in range(5): print(i)')
For
├──Name
│ ├──i
│ ╰──Store
├──Call
│ ├──Name
│ │ ├──range
│ │ ╰──Load
│ ╰──Constant
│ ╰──5
╰──Expr
╰──Call
├──Name
│ ├──print
│ ╰──Load
╰──Name
├──i
╰──Load