script to translate from compiler AST

Andrey Khavryuchenko akhavr at kds.com.ua
Mon Jan 12 13:05:26 EST 2004


Michael,

"MH" == Michael Hudson wrote:

 MH> Andrey Khavryuchenko <akhavr at kds.com.ua> writes:
 >> I'm looking for a script to translate from 'compiler' AST to py source

 MH> google('decompyle')

Well, not *that* :)

 >> and executable code.

 MH> Um, not sure what you're asking for here.  You might be asking for
 MH> Python2C, but it's probably not what you want...

Imagine, I've built an AST that I want to run.  I've not found an easy
(read library) way to do that, hence the question.

Is there a way or I'd better write a proper 'visitor' myself?

-- 
Andrey V Khavryuchenko            http://www.kds.com.ua/
Silver Bullet Software Solutions  http://www.kds.com.ua/training/



More information about the Python-list mailing list