一个帮助编译器构造指导员检查基于正则表达式的规范的等价性的工具

Raúl Benito-Montoro, Xukai Chen, J. Sierra
{"title":"一个帮助编译器构造指导员检查基于正则表达式的规范的等价性的工具","authors":"Raúl Benito-Montoro, Xukai Chen, J. Sierra","doi":"10.1109/SIIE53363.2021.9583625","DOIUrl":null,"url":null,"abstract":"This paper presents CheRegES (CHEcking REGular Expression-based Specifications), a tool that assists the Compiler Construction instructor in checking the equivalence of computer language lexical specifications based on regular expressions. The tool allows the comparison of a reference specification, provided by the instructor, with the specification proposed by the student. As a result, the tool can report that: (i) both specifications are equivalent (and, therefore, the specification proposed by the student can be considered correct); (ii) there are discrepancies between the specification proposed by the student and the one provided by the instructor (and, therefore, the specification proposed by the student can be considered incorrect); or (iii) the result of the comparison is inconclusive. Also, in case discrepancies are discovered, the tool provides sentences that allow differentiation between the two specifications, and that help the instructor to diagnose the problems underlying the student’s specification. The paper motivates the need for the tool, describes its functionality, briefly summarizes its internals, and presents a preliminary evaluation of the tool that makes the usefulness of CheRegES as a tool to support assessment in Compiler Construction courses apparent.","PeriodicalId":244532,"journal":{"name":"2021 International Symposium on Computers in Education (SIIE)","volume":"45 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Tool to Assist the Compiler Construction Instructor in Checking the Equivalence of Specifications Based on Regular Expressions\",\"authors\":\"Raúl Benito-Montoro, Xukai Chen, J. Sierra\",\"doi\":\"10.1109/SIIE53363.2021.9583625\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This paper presents CheRegES (CHEcking REGular Expression-based Specifications), a tool that assists the Compiler Construction instructor in checking the equivalence of computer language lexical specifications based on regular expressions. The tool allows the comparison of a reference specification, provided by the instructor, with the specification proposed by the student. As a result, the tool can report that: (i) both specifications are equivalent (and, therefore, the specification proposed by the student can be considered correct); (ii) there are discrepancies between the specification proposed by the student and the one provided by the instructor (and, therefore, the specification proposed by the student can be considered incorrect); or (iii) the result of the comparison is inconclusive. Also, in case discrepancies are discovered, the tool provides sentences that allow differentiation between the two specifications, and that help the instructor to diagnose the problems underlying the student’s specification. The paper motivates the need for the tool, describes its functionality, briefly summarizes its internals, and presents a preliminary evaluation of the tool that makes the usefulness of CheRegES as a tool to support assessment in Compiler Construction courses apparent.\",\"PeriodicalId\":244532,\"journal\":{\"name\":\"2021 International Symposium on Computers in Education (SIIE)\",\"volume\":\"45 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-09-23\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 International Symposium on Computers in Education (SIIE)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/SIIE53363.2021.9583625\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 International Symposium on Computers in Education (SIIE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SIIE53363.2021.9583625","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

本文介绍了CheRegES(检查基于正则表达式的规范),这是一个帮助编译器构造讲师检查基于正则表达式的计算机语言词法规范的等价性的工具。该工具允许教师提供的参考规范与学生提出的规范进行比较。因此,该工具可以报告:(i)两个规范是等效的(因此,学生提出的规范可以被认为是正确的);(ii)学生提出的规格与教师提供的规格不一致(因此,学生提出的规格可被视为不正确);或者(三)比较结果不确定。此外,在发现差异的情况下,该工具提供了允许区分两种规范的句子,并帮助教师诊断学生规范背后的问题。本文激发了对该工具的需求,描述了它的功能,简要总结了它的内部结构,并对该工具进行了初步评估,使CheRegES作为支持编译器构建课程评估的工具的有用性显而易见。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
A Tool to Assist the Compiler Construction Instructor in Checking the Equivalence of Specifications Based on Regular Expressions
This paper presents CheRegES (CHEcking REGular Expression-based Specifications), a tool that assists the Compiler Construction instructor in checking the equivalence of computer language lexical specifications based on regular expressions. The tool allows the comparison of a reference specification, provided by the instructor, with the specification proposed by the student. As a result, the tool can report that: (i) both specifications are equivalent (and, therefore, the specification proposed by the student can be considered correct); (ii) there are discrepancies between the specification proposed by the student and the one provided by the instructor (and, therefore, the specification proposed by the student can be considered incorrect); or (iii) the result of the comparison is inconclusive. Also, in case discrepancies are discovered, the tool provides sentences that allow differentiation between the two specifications, and that help the instructor to diagnose the problems underlying the student’s specification. The paper motivates the need for the tool, describes its functionality, briefly summarizes its internals, and presents a preliminary evaluation of the tool that makes the usefulness of CheRegES as a tool to support assessment in Compiler Construction courses apparent.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信