[cfe-dev] AST XML dump

Liu Xin navy.xliu at gmail.com
Wed May 13 09:18:20 PDT 2009


On Wed, May 13, 2009 at 7:43 PM, Olaf Krzikalla <
Olaf.Krzikalla at tu-dresden.de> 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?


ELSA is yet another c/cpp parser. ELSA implements c++  better than the
current clang. however, it is limited in a very small group and its major
development has  been evidently over since 2006.
fyi,  it already has XML serializer and de-serializer for AST.
http://www.cubewano.org/oink/wiki/ElsaFeatures


>
>  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).
>
>
> Best regards
> Olaf Krzikalla
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090514/f3b89dbc/attachment.html>


More information about the cfe-dev mailing list