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

基于ANTLR的试卷识别和导入系统的研究
引用本文:潘旭,康慕宁.基于ANTLR的试卷识别和导入系统的研究[J].电子设计工程,2011,19(7):45-49.
作者姓名:潘旭  康慕宁
作者单位:西北工业大学计算机学院,陕西,西安,710072
摘    要:为了解决在线考试系统中手工录入试题效率低下的问题,提出了一种基于ANTLR的自动化解决方案。该方案建立一个试卷识别器,把试卷内容作为源代码,通过词法、语法和语义分析来进行验证和识别,生成试卷模型,实现试题和试卷的导入。文章阐述了整个系统的架构及识别模块的详细设计,并对错误处理进行了详细讨论。结果表明,该系统简化了试题的编写和录入工作,并与在线考试系统很好的结合在一起,起到了增强系统功能和减轻管理员负担的作用。

关 键 词:编译系统  语言识别  词法分析  语法分析  ANTLR

Research on examination paper recognizing and importing system based on ANTLR
PAN Xu,KANG Mu-ning.Research on examination paper recognizing and importing system based on ANTLR[J].Electronic Design Engineering,2011,19(7):45-49.
Authors:PAN Xu  KANG Mu-ning
Affiliation:(Department of Computer,Northwestern Polytechnical University,Xi’an 710072,China)
Abstract:To resolve the low-efficiency problem caused by manually entering questions for online exam system,an ANTLR based automated solution was proposed.This solution is to build a paper recognizer which treats examination papers as source code.It validates and recognizes papers during a compiling procedure:lexical analysis,syntax analysis and semantic analysis.After the walk of the abstract syntax tree,it creates a paper model which can be imported into the database.This paper illustrates the architecture and detailed design of the recognizing system.The error handling is also discussed in details.The result shows,this system simplified the writing and entering for questions and can be integrated with the exam system perfectly.It enhanced the functionality of an exam system and relieves the burden of administrators.
Keywords:compiler system  language recognition  lexical analysis  syntax analysis  ANTLR
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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