###
计算机系统应用英文版:2022,31(3):95-102
本文二维码信息
码上扫一扫!
C语言代码缺陷分析辅助编程实践系统
(江西理工大学 软件工程学院, 南昌 330013)
Construction of C Language Code Defect Analyzer to Assist Programming Practice System
(School of Software Engineering, Jiangxi University of Science and Technology, Nanchang 330013, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 593次   下载 1122
Received:May 18, 2021    Revised:June 25, 2021
中文摘要: 网络课程C语言编程学习中, 师生互动性差、教学效率低, 学生难以凭借自身能力解决编程中常见的代码缺陷问题. 为了更好帮助学生解决学习中的难题, 辅助老师达到教学目的, 研究一款代码缺陷检测辅助学生编程实践系统. 该系统首先对易犯的代码缺陷分类, 分析编译器不易检测的语法、词法和语义缺陷; 然后构建智能分析器, 集成多种检测工具, 在系统中存储知识规则集合并扩展常见代码缺陷抽象模式; 最后检测代码并给出错误报告和修改意见, 通过配合学生模型辅助学生编程学习. 实验结果表明: 该系统能成功检测出常见代码缺陷并辅助学生编程实践.
Abstract:In the learning of online course C Language Programming, the interaction between teachers and students is poor, and the teaching efficiency is low. It is difficult for students to solve the common code defects in programming themselves. To better help students solve the problems in learning and assist teachers to achieve the teaching purpose, this paper develops a practical system to assist students in programming. Firstly, the system classifies the common code defects, focusing on the analysis of syntactic, morphological and semantic defects that are not easy to detect by the compiler. Secondly, it builds an intelligent analyzer that integrates a variety of detection tools to store the set of knowledge rules and extend the abstract pattern of common code defects. Finally, it detects the codes and gives error reports and modification suggestions. This system is capable of assisting students in programming by cooperating with the student model. The experimental results show that the system can successfully detect common code defects and thereby assist students in programming practice.
文章编号:     中图分类号:    文献标志码:
基金项目:江西省自然科学基金(20181BAB202018); 江西理工大学研究生教改课题(YJG2018015)
引用文本:
邱晓红,杨瑞安,敖紫迎,陈佳丽.C语言代码缺陷分析辅助编程实践系统.计算机系统应用,2022,31(3):95-102
QIU Xiao-Hong,YANG Rui-An,AO Zi-Ying,CHEN Jia-Li.Construction of C Language Code Defect Analyzer to Assist Programming Practice System.COMPUTER SYSTEMS APPLICATIONS,2022,31(3):95-102