首页 | 本学科首页   官方微博 | 高级检索  
     检索      

C语言程序分析器的设计与实现
引用本文:高方社,徐建城,李丛,孟凡鹏.C语言程序分析器的设计与实现[J].电子设计工程,2014(4):46-48.
作者姓名:高方社  徐建城  李丛  孟凡鹏
作者单位:西北工业大学,陕西西安710129
摘    要:为了评价程序员编写的程序是否具有良好的风格,来提高程序的可读性.本文提出了一种基于VC6.0开发环境的C语言程序分析器的设计方案,该分析器通过对程序进行扫描,统计出程序中函数的个数,平均函数的长度,代码注释的多少以及空行的多少,来对数据加以分析,完成对程序的总体评价.通过实际应用表明,该分析器能够有效快速地对程序进行评价,最终达到设计的要求.

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

The design and implementation of an analyser for C language program
GAO Fang-she,XU Jian-cheng,LI Cong,MENG Fan-peng.The design and implementation of an analyser for C language program[J].Electronic Design Engineering,2014(4):46-48.
Authors:GAO Fang-she  XU Jian-cheng  LI Cong  MENG Fan-peng
Institution:(North Western Polytechnical University, Xi'an 710129, China)
Abstract: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.
Keywords:C Language  program analyzer  data analysis  evaluation of program
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号