I too have a looming spectre of a C++ analysis project, one of the goals of the project is to be able to efficiently process huge volumes (read GBs) of code.  Given the current benchmarks of language.c compared to the g++ front end. I was thinking of using an existing C++ parser written in C++, probably Elsa[1]. Then use haskell to analyze the resulting AST. <br>
<br>[1] <a href="http://74.125.95.132/search?q=cache:7z7wl7oiy70J:www.eecs.berkeley.edu/~smcpeak/elkhound/sources/elsa/+elsa+c%2B%2B&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us&amp;client=firefox-a">http://74.125.95.132/search?q=cache:7z7wl7oiy70J:www.eecs.berkeley.edu/~smcpeak/elkhound/sources/elsa/+elsa+c%2B%2B&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us&amp;client=firefox-a</a><br>
The link seems to be dead at the moment. <br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 12:29 PM, Rick R <span dir="ltr">&lt;<a href="mailto:rick.richardson@gmail.com">rick.richardson@gmail.com</a>&gt;</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;">There is language.c  <br><br><a href="http://www.sivity.net/projects/language.c/" target="_blank">http://www.sivity.net/projects/language.c/</a><br>
<a href="http://hackage.haskell.org/package/language-c" target="_blank">http://hackage.haskell.org/package/language-c</a><br>
<br><br>From a parsing standpoint, C++ is a massive departure from C. Good luck though. <br><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 12:25 PM, Roy Lowrance <span dir="ltr">&lt;<a href="mailto:roy.lowrance@gmail.com" target="_blank">roy.lowrance@gmail.com</a>&gt;</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;">I am working on a research language that is a variant of C. I&#39;d like<br>
to use Parsec as the parser.<br>
<br>
Is there an existing Parsec parser for C or C++ (or Java) that could<br>
serve as a starting point?<br>
<br>
Thanks, Roy<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>&quot;The greatest obstacle to discovering the shape of the earth, the continents, and the oceans was not ignorance but the illusion of knowledge.&quot; <br>
- Daniel J. Boorstin<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>&quot;The greatest obstacle to discovering the shape of the earth, the continents, and the oceans was not ignorance but the illusion of knowledge.&quot; <br>- Daniel J. Boorstin<br>
<br>