C语言程序分析器的设计与实现  被引量:1

The design and implementation of an analyser for C language program

在线阅读下载全文

作  者:高方社 徐建城[1] 李丛[1] 孟凡鹏[1] 

机构地区:[1]西北工业大学

出  处:《电子设计工程》2014年第4期46-48,共3页Electronic Design Engineering

摘  要:为了评价程序员编写的程序是否具有良好的风格,来提高程序的可读性。本文提出了一种基于VC6.0开发环境的C语言程序分析器的设计方案,该分析器通过对程序进行扫描,统计出程序中函数的个数,平均函数的长度,代码注释的多少以及空行的多少,来对数据加以分析,完成对程序的总体评价。通过实际应用表明,该分析器能够有效快速地对程序进行评价,最终达到设计的要求。In order to evaluate whether the program written by programmer has a good style,and improve the readability of the program.This paper puts forward a design scheme that is based on VC6.0 development environment of C language program analyzer,through scanning the program,the analyzer can calculate the number of function,the average length of the function,the number of code comments and blank line.To analyze the date and perform the evaluation of the program.With the practical application,the analyzer can efficiently evaluate the program and meet the design requirement.

关 键 词:C语言 程序分析器 数据分析 程序评价 

分 类 号:TN01[电子电信—物理电子学]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象