title: Parsing and analyzing C++ code in C#
body: <p>I need to parse C/C++ in C#, and get out a neat AST for analysis &amp; visualisation. My methods are currently : find a C++ parser written in C++ (handwritten or generated by a parser generator), save this data into JSON or similar, switch to C#, use JSON library to read data into C# objects for easy analysis.</p>
  
  <p>Is there a project that allows me something like this? Basically I want a full AST and not just the <a href="http://ctags.sourceforge.net/" rel="nofollow">list of members</a> in a code file. I could start with a C++ parser written in C++, or if there's a parser generator that can generate C# code, and someone's already done it for C++, it would be most useful.</p>