[pypy-dev] Obtaining the Control Flow Graph
Brian C. Lum
bclum at cs.ucsd.edu
Mon Mar 27 05:23:50 CEST 2006
Dear PyPy Developers:
I have been looking for a good way to convert python code into a control
flow graph.
I know of Python functions that will convert an expression into an
abstract syntax tree (i.e. ast = parser.expr('(x+5)*5') then t =
ast.totuple() then t), but I am not sure how to obtain a CFG.
I've gone through the documentation and found
http://codespeak.net/pypy/dist/pypy/doc/objspace.html#the-flow-model
Is this the best way to obtain the control flow graph?
With thanks,
Brian
More information about the Pypy-dev
mailing list