Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CDT AST travelsal problem

Well, starting with a translation unit (or any other node) you could retrieve the children and implement the tree walking yourself if you need a specific behavior. Apart from that the visitor is the only means of traversing the AST provided by CDT.
One of our students implemented a mechanism for composing patterns of subtrees to be matched (eventually it uses the visitor as well). To use it you need to have a very precise expectation of what structure you are looking for.

What do you want to achieve the visitor is not sufficient for?

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of badboy_lin
Sent: Montag, 5. August 2013 16:47
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] CDT AST travelsal problem

I want to know if there is another way to traversal the ast except using astvisitor ?

View this message in context:
Sent from the Eclipse CDT - Development mailing list archive at
cdt-dev mailing list

Back to the top