1982
DOI: 10.1145/69622.357187
|View full text |Cite
|
Sign up to set email alerts
|

Efficient Computation of LALR(1) Look-Ahead Sets

Abstract: Two relations that capture the essential structure of the problem of computing LALR(1) look-ahead sets are defined, and an efficient algorithm is presented to compute the sets in time linear in the size of the relations. In particular, for a PASCAL grammar, the algorithm performs fewer than 15 percent of the set unions performed by the popular compiler-compiler YACC.When a grammar is not LALR(1), the relations, represented explicitly, provide for printing useroriented error messages that specifically indicate … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
2
1

Citation Types

0
15
0

Year Published

1988
1988
2006
2006

Publication Types

Select...
3
3

Relationship

0
6

Authors

Journals

citations
Cited by 89 publications
(15 citation statements)
references
References 11 publications
0
15
0
Order By: Relevance
“…DeRemer and Pennello (see [9]) suggest that the latter class is a subset of the former, at least for the case k= m = 1. We prove here that no relationship exists.…”
Section: Relationships Among Grammar Classesmentioning
confidence: 98%
See 4 more Smart Citations
“…DeRemer and Pennello (see [9]) suggest that the latter class is a subset of the former, at least for the case k= m = 1. We prove here that no relationship exists.…”
Section: Relationships Among Grammar Classesmentioning
confidence: 98%
“…For example, consider a production A+wAy, where A and o generate the empty string. In this case, if an LR(0) state s with a transition on A appears on the top of a stack in a look-ahead item, Closure would add items forever as follows: This situation is equivalent to that posed by DeRemer and Pennello [9]. In computing LALR(1) look-ahead sets, they define a relation among nonterminal transitions in the LR(0) parser called reads:…”
Section: Construction Of Lalr (K) Parsersmentioning
confidence: 99%
See 3 more Smart Citations