[cfe-dev] AST transformations
Taras Glek
tglek at mozilla.com
Thu Apr 24 16:43:51 PDT 2008
Stephan,
Elsa has is commonly used for that task. See http://www.cubewano.org/oink
At Mozilla we maintain a fork of elsa with some bugfixes and additional
features for coping with newer C++ features.
http://wiki.mozilla.org/Pork
Taras
Stephan Creutz wrote:
> Hi,
>
> for a project of mine I need to do a lot of AST transformations
> (inserting new nodes and changing existing ones), thus using the
> Rewriter for this task seems not suitable to me because after each
> transformation step I would need to rebuild the whole AST.
>
> Transformation of ASTs seems not to be trivial because AST nodes are not
> changeable and recreating all nodes from scratch is not practical. I'm
> curious why it is not possible to change AST nodes, is there any
> specific reason? Or isn't it just done yet because there is no interest
> in that right now?
>
> I would also be glad about other suggestions to get my job done.
>
> Thanks,
> Stephan
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
More information about the cfe-dev
mailing list