I need to parse C/C++ in C#, and get out a neat AST for analysis & 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.
Is there a project that allows me something like this? Basically I want a full AST and not just the list of members 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.