C语言代码缺陷分析辅助编程实践系统
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

江西省自然科学基金(20181BAB202018); 江西理工大学研究生教改课题(YJG2018015)


Construction of C Language Code Defect Analyzer to Assist Programming Practice System
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    网络课程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.

    参考文献
    相似文献
    引证文献
引用本文

邱晓红,杨瑞安,敖紫迎,陈佳丽. C语言代码缺陷分析辅助编程实践系统.计算机系统应用,2022,31(3):95-102

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-05-18
  • 最后修改日期:2021-06-25
  • 录用日期:
  • 在线发布日期: 2022-01-24
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号