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
摘要: C语言复杂的声明语句难以理解。为此,提出一种程序理解算法,自动地对C语言声明语句进行部分语义文字描述和可视化表示。引入图元和解释2个概念,构成该程序理解算法的理论基础,这些概念同样可应用于程序理解算法的其他方面。实验结果表明,声明语句的文字描述和可视化表示能够有效提高程序可读性。
关键词:
程序理解,
声明语句,
可视化,
语义解释,
图元,
基本词汇
CLC Number:
GU Hui, LIU Lian-Qi. Text Description and Visualization Representation for C Language Declaration Statement[J]. Computer Engineering, 2012, 38(3): 46-48.
古辉, 游联启. C语言声明语句的文字描述和可视化表示[J]. 计算机工程, 2012, 38(3): 46-48.