2014
DOI: 10.3233/fi-2014-1075
|View full text |Cite
|
Sign up to set email alerts
|

More About Converting BNF to PEG

Abstract: Parsing Expression Grammar (PEG) encodes a recursive-descent parser with limited backtracking. The parser has many useful properties. Converting PEG to an executable parser is a rather straightforward task. Unfortunately, PEG is not well understood as a language definition tool. It is thus of a practical interest to construct PEGs for languages specified in some familiar way, such as Backus-Naur Form (BNF). The problem was attacked by Medeiros in an elegant way by noticing that both PEG and BNF can be formally… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1

Citation Types

0
4
0

Year Published

2016
2016
2020
2020

Publication Types

Select...
3
1

Relationship

0
4

Authors

Journals

citations
Cited by 4 publications
(4 citation statements)
references
References 4 publications
(8 reference statements)
0
4
0
Order By: Relevance
“…In order to define a safe input position to resume parsing, we will use the classical F IRST and F OLLOW sets. A detailed discussion about F IRST and F OLLOW sets in the context of PEGs can be found in other papers [8,9,10].…”
Section: Error Recovery In Pegs With Labeled Failuresmentioning
confidence: 99%
See 1 more Smart Citation
“…In order to define a safe input position to resume parsing, we will use the classical F IRST and F OLLOW sets. A detailed discussion about F IRST and F OLLOW sets in the context of PEGs can be found in other papers [8,9,10].…”
Section: Error Recovery In Pegs With Labeled Failuresmentioning
confidence: 99%
“…http://bit.ly/c89-manual9 Coincidentally, both Titan and C grammars have the same number of syntactical rules, and their manually annotated grammars throw the same amount of labels.10 http://bit.ly/c89-standard…”
mentioning
confidence: 99%
“…We can improve the error recovery quality of a PEG parser by using the FIRST and FOLLOW sets of parsing expressions when throwing labels or recovering from an error. A detailed discussion about FIRST and FOLLOW sets in the context of PEGs can be found in other papers [12,20,21].…”
Section: Error Recovery Strategies For Pegsmentioning
confidence: 99%
“…We can improve the error recovery quality of a PEG parser by using the FIRST and FOLLOW sets of parsing expressions when throwing labels or recovering from an error. A detailed discussion about FIRST and FOLLOW sets in the context of PEGs can be found in other papers [12][13][14].…”
Section: Error Recovery Strategies For Pegsmentioning
confidence: 99%