使用 Visual Basic 和 C# 开发的应用程序的 AST 生成
我目前正在了解一个用 Visual Basic 和 C# 开发的应用程序。运行代码变得越来越困难,因为代码约为 50KLOC。所以我正在计划生成 AST(抽象语法树)。是否可以同时生成两种语言。
至少调用图生成会有帮助(但找不到任何适用于两种语言的工具)
如果这个问题令人困惑,请告诉我。
提前致谢 开发者
I'm currently understanding one application developed both in visual basic and c#. Running through the code is getting tough as code is around 50KLOC. So I'm planning for generation of AST (abstract syntax tree). Will it be possible to generate for both language together.
At least a call graph generation will be helpful (but can't find any tool which works for both languages)
Please let me know if this question is confusing.
Thanks in Advance
Dev
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
生成 AST 不会做任何事情来帮助您理解代码,除非您还添加了巨大的大量的分析和显示机器。如果你非常擅长这种事情,那么这将需要你几个月的时间来构建。
如果您的目标是继续理解/增强代码,那么您最好使用现成的工具来帮助您理解代码。
Generation of ASTs won't do anything to help you understand the code, unless you also add huge amounts of analysis and display machinery. This will take you months to build if you are extremely good at this kind of thing.
You are better off getting an off-the-shelf tool to help you understand the code, if your goal is to get on with understanding/enhancing it.