2014
DOI: 10.1016/j.scico.2014.01.012
|View full text |Cite
|
Sign up to set email alerts
|

On the relation between context-free grammars and parsing expression grammars

Abstract: Context-Free Grammars (CFGs) and Parsing Expression Grammars (PEGs) have several similarities and a few differences in both their syntax and semantics, but they are usually presented through formalisms that hinder a proper comparison. In this paper we present a new formalism for CFGs that highlights the similarities and differences between them. The new formalism borrows from PEGs the use of parsing expressions and the recognition-based semantics. We show how one way of removing non-determinism from this forma… 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

1
19
0

Year Published

2014
2014
2022
2022

Publication Types

Select...
5
1

Relationship

1
5

Authors

Journals

citations
Cited by 18 publications
(20 citation statements)
references
References 21 publications
1
19
0
Order By: Relevance
“…When there is nothing more to replace, we are left with the sets of "first letters" used in checking the LL(1) condition. For such sets, (4) means X ∩ Y = ∅, which confirms the result about LL(1) grammars from [5,6]. Note that (8) above is not LL(1), and not even LL(k) for any k.…”
Section: Checking the Conditionsupporting
confidence: 79%
See 4 more Smart Citations
“…When there is nothing more to replace, we are left with the sets of "first letters" used in checking the LL(1) condition. For such sets, (4) means X ∩ Y = ∅, which confirms the result about LL(1) grammars from [5,6]. Note that (8) above is not LL(1), and not even LL(k) for any k.…”
Section: Checking the Conditionsupporting
confidence: 79%
“…The grammar G is left-recursive if e ∈ First(e) for some e ∈ E. If the grammar is left-recursive, its PEG parser may be involved in an infinite descent, meaning that a proof of PEG may not exist. On the other hand: This is proved in [5,6] by first verifying that the natural semantics given there is equivalent to the formal definition from [4], and then using a result from the same paper that grammar without left-recursion is "complete". In the Appendix, we give an independent proof that makes our presentation self-contained.…”
Section: Previous Resultsmentioning
confidence: 99%
See 3 more Smart Citations