<br><br><div class="gmail_quote">On Wed, May 13, 2009 at 7:43 PM, Olaf Krzikalla <span dir="ltr"><<a href="mailto:Olaf.Krzikalla@tu-dresden.de">Olaf.Krzikalla@tu-dresden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi @clang-community,<br>
<br>
I've recently started a C(++)-source-to-source translation project. The<br>
project is open-source and thus all the components involved needs to be<br>
open-source too.<br>
The goal of the project is to semi-automatically rewrite and optimize<br>
parts of C(++) sources (C++ instead of C is a 'very-nice-to-have feature').<br>
Currently I'm still in the evaluation phase. Obvisiously the first thing<br>
I need is a parser. Beside gcc I found clang, sparse and the Ravi C<br>
parser as open source projects. Are there any others out there?</blockquote><div><br>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.<br>
fyi,  it already has XML serializer and de-serializer for AST.<br><a href="http://www.cubewano.org/oink/wiki/ElsaFeatures">http://www.cubewano.org/oink/wiki/ElsaFeatures</a><br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
 From among these three projects clang seems to be the most promising<br>
project for my needs as it is already able to deal with some C++ (and<br>
according to cfe-commits the community is very active in this area).<br>
However one thing I badly need is a better AST dump. I'm now going to<br>
implement my own XML dump in clang since the current AST dump is hard to<br>
parse. Any objections? (of course I can do what I want to do anyway, but<br>
in the end I naturally want to contribute my additions to the clang<br>
project - so I better ask).<br>
<br>
<br>
Best regards<br>
<font color="#888888">Olaf Krzikalla<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></blockquote></div><br>