Proceedings of the 33rd Annual ACM Symposium on Applied Computing 2018
DOI: 10.1145/3167132.3167261
|View full text |Cite
|
Sign up to set email alerts
|

Syntax error recovery in parsing expression grammars

Abstract: Parsing Expression Grammars (PEGs) are a formalism used to describe top-down parsers with backtracking. As PEGs do not provide a good error recovery mechanism, PEG-based parsers usually do not recover from syntax errors in the input, or recover from syntax errors using ad-hoc, implementation-specific features. e lack of proper error recovery makes PEG parsers unsuitable for using with Integrated Development Environments (IDEs), which need to build syntactic trees even for incomplete, syntactically invalid prog… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
11
0

Year Published

2018
2018
2020
2020

Publication Types

Select...
4
2

Relationship

1
5

Authors

Journals

citations
Cited by 6 publications
(11 citation statements)
references
References 18 publications
0
11
0
Order By: Relevance
“…We have presented a mechanism for partially automating the process of adding error reporting and error recovery to parsers based on Parsing Expression Grammars. To achieve this, we proposed algorithms that automatically annotate the LL(1) parts of a PEG with error labels [2,3] and associates recovery expressions for these labels [4].…”
Section: Resultsmentioning
confidence: 99%
See 2 more Smart Citations
“…We have presented a mechanism for partially automating the process of adding error reporting and error recovery to parsers based on Parsing Expression Grammars. To achieve this, we proposed algorithms that automatically annotate the LL(1) parts of a PEG with error labels [2,3] and associates recovery expressions for these labels [4].…”
Section: Resultsmentioning
confidence: 99%
“…ANTLR automatically generates from a grammar description a parser with error reporting and recovery mechanisms, so the user does not need to annotate the grammar. After an error, ANTLR parses the entire input again to determine the error, which can lead to a poor performance when compared to our approach [4].…”
Section: Related Workmentioning
confidence: 97%
See 1 more Smart Citation
“…al. [30] presented a parser expression grammar (PEG). While working on the structure of PEG's, authors also demonstrated some properties of context-free grammars (CFG) and PEG's.…”
Section: Literature Reviewmentioning
confidence: 99%
“…However, this first labeled failures formalization makes harder to recover from an error in its own context, since when a label is handled in a choice, the information about the error context is lost. Because of this, attempts to deal with error recovery in PEGs favored a semantics where the ⇑ operator itself handles the error [6,16]. To recover from an error, the ⇑ operator tries to match a recovery expression (a regular parsing expression).…”
Section: Related Workmentioning
confidence: 99%