Hello,
I'm trying to write something that will translate Python code to
pseudo-code (for teaching purposes). Googling around indicated that the
compiler module is pertinent, especially creating a visitor to walk the
generated AST:
I can build the AST, but I can't figure out how to write the
visitor. The package documentation didn't help me out that much, and I
couldn't find any examples. In fact, google only came up with this
unanswered related question:
Any help is appreciated.
Thanks and Bye,
Efrat
I'm trying to write something that will translate Python code to
pseudo-code (for teaching purposes). Googling around indicated that the
compiler module is pertinent, especially creating a visitor to walk the
generated AST:
I can build the AST, but I can't figure out how to write the
visitor. The package documentation didn't help me out that much, and I
couldn't find any examples. In fact, google only came up with this
unanswered related question:
Any help is appreciated.
Thanks and Bye,
Efrat
Comment