[cfe-dev] AST XML dump

steve naroff snaroff at apple.com
Wed May 13 03:46:22 PDT 2009


On May 13, 2009, at 6:43 AM, Olaf Krzikalla wrote:

> Hi @clang-community,
>
> I've recently started a C(++)-source-to-source translation project.  
> The
> project is open-source and thus all the components involved needs to  
> be
> open-source too.
> The goal of the project is to semi-automatically rewrite and optimize
> parts of C(++) sources (C++ instead of C is a 'very-nice-to-have  
> feature').
> Currently I'm still in the evaluation phase. Obvisiously the first  
> thing
> I need is a parser. Beside gcc I found clang, sparse and the Ravi C
> parser as open source projects. Are there any others out there?
> From among these three projects clang seems to be the most promising
> project for my needs as it is already able to deal with some C++ (and
> according to cfe-commits the community is very active in this area).
> However one thing I badly need is a better AST dump. I'm now going to
> implement my own XML dump in clang since the current AST dump is  
> hard to
> parse. Any objections? (of course I can do what I want to do anyway,  
> but
> in the end I naturally want to contribute my additions to the clang
> project - so I better ask).
>

Having an easy to parse/read XML dump would be great!

The current AST dump is primarily used for debugging.

Thanks,

snaroff

>
> Best regards
> Olaf Krzikalla
> _______________________________________________
> 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