1993
DOI: 10.1002/spe.4380230803
|View full text |Cite
|
Sign up to set email alerts
|

Parsing Non‐LR(k) grammars with yacc

Abstract: Of the parser generating tools currently in use, yacc (or one of its several variants) is perhaps the most frequently employed. However, because of inherent ambiguities there are some languages (such as C++) that a yacc‐generated parser cannot successfully compile. This paper describes a set of minor modifications to yacc‐like tools that allows them to be used in a straightforward way to parse ambiguities and, more generally, grammars that require an indefinite amount of lookahead. Required changes to the lexi… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
5
0

Year Published

1995
1995
2019
2019

Publication Types

Select...
5
2

Relationship

0
7

Authors

Journals

citations
Cited by 8 publications
(5 citation statements)
references
References 0 publications
0
5
0
Order By: Relevance
“…Rather than hand-write a parser, many choose to use an existing parsing tool. However, these tools are known for their maintenance and extension challenges, vague error descriptions, and frustrating shift/reduce and reduce/reduce conflicts (Merrill 1993).…”
Section: Introductionmentioning
confidence: 99%
“…Rather than hand-write a parser, many choose to use an existing parsing tool. However, these tools are known for their maintenance and extension challenges, vague error descriptions, and frustrating shift/reduce and reduce/reduce conflicts (Merrill 1993).…”
Section: Introductionmentioning
confidence: 99%
“…The parsing process can be considered a text-to-model (T2M) transformation. In practice, the parser is usually generated from the grammar by a parser generator, like ANTLR [24,25], Bison [26], or Yacc [27,28]. The inverse of the T2M transformation is the model-to-text (M2T) transformation [29,30].…”
Section: Processes and Artifacts In Text-based Modelingmentioning
confidence: 99%
“…Merrill [9] Regarding top-down parsers, which are used to parse type of grammar called LL, a set of parser generators are used such as Coco/R [11], ANTLR 3 [12], ANTLR 4 [13], and JavaCC [14]. They require the grammar to be LL(k).…”
Section: Fig 1: Using Conditional and Unconditional Actions Bymentioning
confidence: 99%
“…[7,8,9,10] are some attempts to use backtracking. The backtracking approach suggests that when finding a non-deterministic rule, then a trial parsing is done to the first alternative.…”
Section: Introductionmentioning
confidence: 99%
See 1 more Smart Citation