ASTVisitor

Peter Maas peter.maas at mplusr.de
Thu Apr 10 12:14:00 EDT 2003


frank at niessink.com wrote:
> I agree the docs aren't very clear. Apparently, you have to restart 
> the traversal after each match. 

Frank,

first, thanks for your help. That means the visit<class> functions have
to handle the traversal. Then it would be sufficient to have one function
that does traversal *and* visit. For example, define a root level visit
function that is called by ASTVisitor.preorder and does a postorder. :)

Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas at mplusr.de
-------------------------------------------------------------------





More information about the Python-list mailing list