期刊文献+

基于语法树和JavaCC的程序题自动评分系统 被引量:2

Grading of Programs Using Abstract Syntax Tree & JavaCC
下载PDF
导出
摘要 为了提高程序题自动评分的准确性,及解决传统评分方法无法从语法结构和语义角度衡量错误的学生程序与正确答案之间的相似度,提出了一种基于抽象语法树匹配的程序题自动评分方法。文中以JavaCC技术为核心,首先通过词法分析、语法分析和语义分析生成错误列表和抽象语法树的中间表示,然后通过语法树切片匹配得分,最后和错误列表结合给出评分结果。文中详细论述了各个模块的设计方法,着重讨论了抽象语法树生成并匹配的细节,设计并实现了一个传统方法与语义分析结合的C++程序题自动评分系统。通过对实际考试的结果进行实验,进而验证了该系统的实用性与有效性。 A system for grading student programs is designed to enhance the accuracy, and solve the problem that traditional automatic grading approaches can not evaluate the similarity of the source code to correct solutions by using syntax structure and semantic analysis. Present a tool for quickly comparing the source code of student programs and correct solutions. The approach is based on partial abstract syntax tree matching (AST) ,and using JavaCC to generate the AST,then making the score by Tree Cuts and combine the parse error. In this paper, designed and implemented a grading system on C++ programs, and the semantic analysis is used in conjunction with traditional approaches. And then, verify the practicability and effectiveness of the system.
出处 《计算机技术与发展》 2012年第1期126-128,共3页 Computer Technology and Development
关键词 抽象语法树 程序评分 JAVACC syntax tree matching grading of programs JavaCC
  • 相关文献

参考文献12

  • 1Higgins C A, Gray G, Symeonidis P, et al. Automated assessment and experiences of teaching programming [ J ]. ACM Journal on Educational Resources in Computing (JERIC), 2005,5(3) :5-26.
  • 2Zhao Changhai, Yan Haihua, Song Cong. A System for Automatic Assessment and Plagiarism Detection of Student Programs[ C ]//International Conference on E-Business and E- Government ( ICEE). Guangzhou : [ s. n. ] ,2010:3619-3624.
  • 3Wang Tiantian, Su Xiaohong, Wang Yuying, et al. Semantic similarity-based grading of student programs[J]. Information and Software Technology ,2007,49 (2) :99-107.
  • 4Kodaganallur V. Incorporating Language Processing into Java Applications : A JavaCC Tutorial [ J ]. IEEE Software, 2004,21(4) :70-77.
  • 5Funaro M, Braga D, Campi A, et al. A Hybrid Approach ( Syntactic and Textual) to Clone Detection [ C ]//ACM International Workshop on Software Clones ( IWSC ). [ s. l. ] : [ s. n. ] ,2010:79-80.
  • 6高传平,谈利群,宫云战.基于抽象语法树的代码静态自动测试方法研究[J].北京化工大学学报(自然科学版),2007,34(A01):25-29. 被引量:10
  • 7牛家浩,黄志球,张静,刘佳.基于抽象语法树的软件度量工具的设计与实现[J].计算机应用,2003,23(10):39-41. 被引量:5
  • 8Neamtiu I, Foster J S, Hicks M, et al. Understanding source code evolution using abstract syntax tree matching [ J ]. ACM SIGSOFT Software Engineering Notes,2005,30 ( 4 ) : 1-5.
  • 9姚砺,束永安.用JavaCC构造编译器的方法[J].计算机工程,2003,29(9):39-41. 被引量:7
  • 10周健,孙丽艳.用JavaCC和JJTree构造扩展模式文档解析器[J].计算机技术与发展,2008,18(9):87-90. 被引量:2

二级参考文献37

  • 1张晓琳,王国仁.用继承扩展XML-RL[J].小型微型计算机系统,2005,26(2):243-247. 被引量:25
  • 2詹国华 虞歌 等.浙江省2000年普通高中计算机会考上机考核系统[J].计算机科学,2000,28(8):141-142.
  • 3黄柏素 梅宏 译.软件工程--实践者的研究方法,第四版[M].北京:机械工业出版社,2001.461-469.
  • 4王邯 冯刚 肖俊.网络教育中C程序设计自适应考试系统的设计和实现 [EB/OL].http://www.cec.edu.cn/elearning/2001nh/3-6.doc,2002-11-20.
  • 5McCabe TJ, Watson AH. Software Complexity[J]. Crosstalk. 1994,7(12) : 5 -9.
  • 6Harrison R, Counsell S J, Nithi RV. An Evalution of the MOOD Set of Object-Oriented Software Metrics[ J]. IEEE Transactions on Software Engineering, 1998, 24(6) : 491 - 496.
  • 7Chidamber, Shyam, Kemerer, et al. A Metrics Suite for Object Oriented Design[ J]. IEEE Transaxtions on Software Engineering, 1994,20(6) : 476 -492.
  • 8Gilesand AE, Daich GT. Universal Metrics Tools[ EB/OL]. hap://www. stsc. hill. af. mil/crosstalk/1995/02/Metrics.asp, 1995 -02.
  • 9Wiegers KE. A Sottware Metrics Primer[ EB/OL]. http://www.processimpact.com/articles/metrics_primer. pdf, 1999 -07.
  • 10黄柏素 梅宏 译.软件工程——实践者的研究方法(第四版)[M].北京:机械工业出版社,2001.461-469.

共引文献98

同被引文献19

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部