Skip to content

salt-die/prettiest_ast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A pretty printer for python abstract syntax trees.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages