处理语法错误的LR技术

Pierpaolo Degano , Corrado Priami
{"title":"处理语法错误的LR技术","authors":"Pierpaolo Degano ,&nbsp;Corrado Priami","doi":"10.1016/S0096-0551(97)00016-7","DOIUrl":null,"url":null,"abstract":"<div><p>A taxonomy of syntax error handling techniques used in LR parsers is presented. The methods are classified according to the major features they offer. In particular, we distinguish correcting and noncorrecting techniques. The goal of the former methods is to correct an error when detected and to restart the parser. Instead, noncorrecting techniques simply signal the presence of an error and continue the analysis without attempting any correction on the source program. A finer classification of correcting approaches is given according the amount of information that is gathered around the error by the recovery routine. We distinguish phrase level, global and local techniques. Also interactive methods are considered. We report an evaluation of some techniques based on quality of the corrections, language independence, flexibility and efficiency. Finally, a glossary of technical terms is also provided.</p></div>","PeriodicalId":100315,"journal":{"name":"Computer Languages","volume":"24 2","pages":"Pages 73-98"},"PeriodicalIF":0.0000,"publicationDate":"1998-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0096-0551(97)00016-7","citationCount":"5","resultStr":"{\"title\":\"LR techniques for handling syntax errors\",\"authors\":\"Pierpaolo Degano ,&nbsp;Corrado Priami\",\"doi\":\"10.1016/S0096-0551(97)00016-7\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>A taxonomy of syntax error handling techniques used in LR parsers is presented. The methods are classified according to the major features they offer. In particular, we distinguish correcting and noncorrecting techniques. The goal of the former methods is to correct an error when detected and to restart the parser. Instead, noncorrecting techniques simply signal the presence of an error and continue the analysis without attempting any correction on the source program. A finer classification of correcting approaches is given according the amount of information that is gathered around the error by the recovery routine. We distinguish phrase level, global and local techniques. Also interactive methods are considered. We report an evaluation of some techniques based on quality of the corrections, language independence, flexibility and efficiency. Finally, a glossary of technical terms is also provided.</p></div>\",\"PeriodicalId\":100315,\"journal\":{\"name\":\"Computer Languages\",\"volume\":\"24 2\",\"pages\":\"Pages 73-98\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1998-07-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://sci-hub-pdf.com/10.1016/S0096-0551(97)00016-7\",\"citationCount\":\"5\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0096055197000167\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Languages","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0096055197000167","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5

摘要

介绍了在LR解析器中使用的语法错误处理技术的分类。这些方法根据它们提供的主要特性进行分类。我们特别区分了纠错和非纠错技术。前两种方法的目标是在检测到错误时纠正错误并重新启动解析器。相反,非校正技术只是发出错误存在的信号,然后继续分析,而不尝试对源程序进行任何校正。根据恢复例程在错误周围收集的信息量,给出了纠正方法的更精细的分类。我们区分短语级、全局和局部技术。还考虑了交互方法。我们报告了基于纠正质量,语言独立性,灵活性和效率的一些技术的评估。最后,还提供了一个专业术语表。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
LR techniques for handling syntax errors

A taxonomy of syntax error handling techniques used in LR parsers is presented. The methods are classified according to the major features they offer. In particular, we distinguish correcting and noncorrecting techniques. The goal of the former methods is to correct an error when detected and to restart the parser. Instead, noncorrecting techniques simply signal the presence of an error and continue the analysis without attempting any correction on the source program. A finer classification of correcting approaches is given according the amount of information that is gathered around the error by the recovery routine. We distinguish phrase level, global and local techniques. Also interactive methods are considered. We report an evaluation of some techniques based on quality of the corrections, language independence, flexibility and efficiency. Finally, a glossary of technical terms is also provided.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:481959085
Book学术官方微信