摘要: 利用编译代码分析技术,提出一种适用于面向对象程序语言的程序理解与描述算法。该算法对面向对象程序源代码进行分析,获取程序相关知识信息,再对获取的信息进行抽象、推理及演绎,用可视化的形式表达程序细节,由此实现函数级算法结构的程序理解。测试结果证明,该算法能准确理解并清楚表达面向对象语言的结构信息。
关键词:
程序理解,
程序分析,
语法规则,
信息提取,
信息表达,
可视化表示
Abstract: This paper proposes a comprehension and description algorithm for object-oriented program with the code analysis of compiling technique. It analyzes object-oriented program, and concludes the knowledge related to the program information. It abstracts the knowledge of program information, and expresses program details in visual form. Program comprehension penetrates into algorithm structure analysis under function-level. Test result proves that the algorithm can accurately understand and express the structure information of object-oriented program.
Key words:
program comprehension,
program analysis,
grammar rule,
information extraction information express,
visual representation
中图分类号:
林道淼, 古辉. 面向对象程序的理解与可视化表示算法[J]. 计算机工程, 2012, 38(06): 72-74.
LIN Dao-Miao, GU Hui. Comprehension and Visual Representation Algorithm of Object-oriented Program[J]. Computer Engineering, 2012, 38(06): 72-74.