Parsing Java Source Code

前端 未结 9 1778
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 07:20

I am asked to develop a software which should be able to create Flow chart/ Control Flow of the input Java source code. So I started researching on it and arrived at followi

9条回答
  •  清酒与你
    2021-01-12 07:53

    Our DMS Software Reengineering Toolkit is general purpose program analysis and transformation machinery, with built in capability for parsing, building ASTs, constructing symbol tables, extracting control and data flow, transforming the ASTs, prettyprinting ASTs back to text, etc.

    DMS is parameterized by an explicit language definition, and has a large set of preexisting definitions.

    DMS's Java Front End already computes control and data flow graphs, so your problem would be reduced to exporting them.

    EDIT 7/19/2014: Now handles Java 8.

提交回复
热议问题