计算机工程 ›› 2012, Vol. 38 ›› Issue (06): 72-74.doi: 10.3969/j.issn.1000-3428.2012.06.023

• 软件技术与数据库 • 上一篇    下一篇

面向对象程序的理解与可视化表示算法

林道淼,古 辉   

  1. (浙江工业大学计算机学院,杭州 310023)
  • 收稿日期:2011-08-03 出版日期:2012-03-20 发布日期:2012-03-20
  • 作者简介:林道淼(1987-),男,硕士研究生,主研方向:程序理解,软件工程;古 辉,教授
  • 基金项目:
    浙江省自然科学基金资助项目(9353106)

Comprehension and Visual Representation Algorithm of Object-oriented Program

LIN Dao-miao, GU Hui   

  1. (College of Computer, Zhejiang University of Technology, Hangzhou 310023, China)
  • Received:2011-08-03 Online:2012-03-20 Published:2012-03-20

摘要: 利用编译代码分析技术,提出一种适用于面向对象程序语言的程序理解与描述算法。该算法对面向对象程序源代码进行分析,获取程序相关知识信息,再对获取的信息进行抽象、推理及演绎,用可视化的形式表达程序细节,由此实现函数级算法结构的程序理解。测试结果证明,该算法能准确理解并清楚表达面向对象语言的结构信息。

关键词: 程序理解, 程序分析, 语法规则, 信息提取, 信息表达, 可视化表示

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

中图分类号: