Skip to content

riccitensor/astviewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astviewer

Python Abstract Syntax Tree viewer/browser in Qt.

astviewer screen shot

Installation:

  1. Install PySide: http://qt-project.org/wiki/Category:LanguageBindings::PySide

  2. Run the installer:

    %> sudo python setup.py install
    

Usage:

  • Command line example:

    %> pyastviewer myprog.py
    
  • Examples to use from within Python:

    >>> from astviewer import view
    >>> view(file_name='myprog.py', width=800, height=600)
    >>> view(source_code = 'a + 3', mode='eval')

Further links:

The Green Tree Snakes documentation on ASTs is available for those who find the Python ast module documentation too brief.

About

Python Abstract Syntax Tree viewer in Qt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%