Skip to content

1etterh/PythonAlgorithmAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

visualize-ast

visualize ast for code analysis

used libraries

ast, astor, graphviz, matplotlib

references

birdseye

PythonASTAnalyzer(ast.NodeTransformer)

  1. custom subclass of ast.NodeTransformer
  2. visit : save variable names
  3. used for understanding the overall structure of Algorithm code
  4. since it is used for understanding overall structure of code, it doesn't track actual value on runtime
  5. creates AST structure of tree and order and nodes in ast-graph.png.

ValueTracker(ast.NodeTransformer)

  1. used for observing variables in runtime
  2. visualizes each turns of loop through graphviz
  3. show values of variables in runtime
  4. results are saved in /graphs/${YYYYMMDD_TT_MM_SS}

About

visualize ast for code analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages