Affiliation:
1. Thomas J. Watson Research Center, Yorktown Heights, NY
Abstract
This paper presents a powerful, practical, and essentially language-independent syntactic error diagnosis and recovery method that is applicable within the frameworks of LR and LL parsing. The method generally issues accurate diagnoses even where multiple errors occur within close proximity, yet seldom issues spurious error messages. It employs a new technique, parse action deferral, that allows the most appropriate recovery in cases where this would ordinarily be precluded by late detection of the error. The method is practical in that it does not impose substantial space or time overhead on the parsing of correct programs, and in that its time efficiency in processing an error allows for its incorporation in a production compiler. The method is language independent, but it does allow for tuning with respect to particular languages and implementations through the setting of language-specific parameters.
Publisher
Association for Computing Machinery (ACM)
Reference17 articles.
1. AMERICAN NATIONAL STANDARDS INSTITUTE. Ada programming language military standard. ANSI/MIL-STD-1815A American National Standards Institute Washington D.C. Jan. 1983. AMERICAN NATIONAL STANDARDS INSTITUTE. Ada programming language military standard. ANSI/MIL-STD-1815A American National Standards Institute Washington D.C. Jan. 1983.
2. A practical method for syntactic error diagnosis and recovery
3. BURKE M. G. AND FISHER G.A. A practical method for LR and LL syntactic error diagnosis and recovery. Res. Rep. RC 11111 IBM T. J. Watson Research Yorktown Heights N.Y. Mar. 1985. BURKE M. G. AND FISHER G.A. A practical method for LR and LL syntactic error diagnosis and recovery. Res. Rep. RC 11111 IBM T. J. Watson Research Yorktown Heights N.Y. Mar. 1985.
Cited by
27 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Seq2Parse: neurosymbolic parse error repair;Proceedings of the ACM on Programming Languages;2022-10-31
2. CoEdit: A novel error correction mechanism in compilers using spelling correction algorithms;Journal of King Saud University - Computer and Information Sciences;2021-03
3. Towards the optical character recognition of DSLs;Proceedings of the 13th ACM SIGPLAN International Conference on Software Language Engineering;2020-11-15
4. DeepDelta: learning to repair compilation errors;Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering;2019-08-12
5. Pushdown Automata and Parsing;Texts in Computer Science;2019