开发者

CppCodeGenerator parse managed C++

开发者 https://www.devze.com 2023-03-12 21:46 出处:网络
I am looking to parse managed C++ files into a CodeDOM tree (or any other c# representation, for that matter). I see that CppCodeGenerator has been removed in .NET4, and it does not provide a Parse(st

I am looking to parse managed C++ files into a CodeDOM tree (or any other c# representation, for that matter). I see that CppCodeGenerator has been removed in .NET4, and it does not provide a Parse(string) implementation. Any ideas?

Th开发者_JS百科anks


Can't help with CodeDom; according to other posters there's no help for it anyway.

If you want robust, accurate parsers for C#, VB.net, VC++ and managed VC++ (and many other languages) you might consider our DMS Software Reengineering Toolkit and its family of language front-ends.

Using a front-end, DMS parses source into a detailed AST enabling further analysis, transformation, and generation of valid source code from modified ASTs. No, you can't manipulate these trees using C# calls; you have to do that from inside DMS, which offers a complete ecosystem for these tasks. But you can manipulate them from inside DMS in virtually arbitary ways.

0

精彩评论

暂无评论...
验证码 换一张
取 消