Skip to content

Visualization of Python's Syntax tree, Abstract syntax tree and Bytecodes

Notifications You must be signed in to change notification settings

nishio/Python-Visualization-on-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python visualizer on browser

It shows Python's bytecodes.

How to try

  • 1: Run server: $ python server.py
  • 2: Enter '1 + 2' in textarea. Bytecodes are shown automatically.

TODO

  • Better method to show the target of ABSOLUTE_JUMP, corresponding SETUP_LOOP and POP_BLOCK, etc.
  • Nested function will shown as "LOAD_CONST <code object ...>". Should we support nexted functions?
  • Show status such as 'compile error'.
  • Link opname to document of those instruction http://docs.python.org/library/dis.html
  • Show tables of constant and name.
  • Show syntax tree and abstract syntax tree? In another tab? Should I split projects?

About

Visualization of Python's Syntax tree, Abstract syntax tree and Bytecodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published