作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (3): 46-48. doi: 10.3969/j.issn.1000-3428.2012.03.016

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

C语言声明语句的文字描述和可视化表示

古 辉,游联启   

  1. (浙江工业大学计算机科学与技术学院,杭州 310023)
  • 收稿日期:2011-08-08 出版日期:2012-02-05 发布日期:2012-02-05
  • 作者简介:古 辉(1956-),男,教授,主研方向:程序理解技术,智能信息处理;游联启,硕士研究生
  • 基金资助:
    浙江省自然科学基金资助项目“基于最小信息集的程序理解信息抽取模型研究”(93531068)

Text Description and Visualization Representation for C Language Declaration Statement

GU Hui, YOU Lian-qi   

  1. (College of Computer Science & Technology, Zhejiang University of Technology, Hangzhou 310023, China)
  • Received:2011-08-08 Online:2012-02-05 Published:2012-02-05

摘要: C语言复杂的声明语句难以理解。为此,提出一种程序理解算法,自动地对C语言声明语句进行部分语义文字描述和可视化表示。引入图元和解释2个概念,构成该程序理解算法的理论基础,这些概念同样可应用于程序理解算法的其他方面。实验结果表明,声明语句的文字描述和可视化表示能够有效提高程序可读性。

关键词: 程序理解, 声明语句, 可视化, 语义解释, 图元, 基本词汇

Abstract: It is difficult to be understood that some complicated declarations in C language. In order to solve this problem, an algorithm of program comprehension which auto charts and describes the declaration of C language is proposed. The concept of chart and description are proposed in this algorithm. They are the key of the algorithm and also used in other researches of program understanding. Experimental results show that the chart and description of C declaration can be understood.

Key words: program comprehension, declaration statement, visualization, semantic interpretation, primitive, basic vocabulary

中图分类号: