script to translate from compiler AST
Miki Tebeka
miki.tebeka at zoran.com
Mon Jan 12 03:37:42 EST 2004
Hello Andrey,
> I'm looking for a script to translate from 'compiler' AST to py source
> and executable code.
>
> Google search reveals hardly useful links.
>
> Is there something like that or it is left as an exercise for a curious
> developer?
Have you looked at the parser module?
(http://www.python.org/doc/current/lib/module-parser.html) it does
have some functions operating on AST. The is also a visitor patter
support in the compiler module.
HTH.
Miki
More information about the Python-list
mailing list