1979
DOI: 10.1145/872732.806968
|View full text |Cite
|
Sign up to set email alerts
|

Efficient computation of LALR(1) look-ahead sets

Abstract: We define two relations that capture the essential structure of the problem of computing LALR(1) look-ahead sets, and present an efficient algorithm to compute the sets in time linear in the size of the relations. In particular, for a PASCAL grammar, our algorithm performs less than 20% of the set unions performed by a popular-compiler (YACC).

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

1
14
0
1

Year Published

1981
1981
2017
2017

Publication Types

Select...
6
3

Relationship

0
9

Authors

Journals

citations
Cited by 27 publications
(16 citation statements)
references
References 2 publications
1
14
0
1
Order By: Relevance
“…The former one scans the GMQL query and generates a list of tokens; the latter one identifies sub-sequences of the token list which correspond to grammar rules, using a LALR(1) algorithm [34]. When a statement is semantically valid, the compiler first infers the schema of the new introduced variable, then updates the internal state and finally emits the Apache Pig code that performs the requested operation.…”
Section: Gmql Compilermentioning
confidence: 99%
“…The former one scans the GMQL query and generates a list of tokens; the latter one identifies sub-sequences of the token list which correspond to grammar rules, using a LALR(1) algorithm [34]. When a statement is semantically valid, the compiler first infers the schema of the new introduced variable, then updates the internal state and finally emits the Apache Pig code that performs the requested operation.…”
Section: Gmql Compilermentioning
confidence: 99%
“…Thus, Phase 0 computes LALR(1) parser tables. It does so in two steps: (1) compute LR(0) parser tables, and (2) compute the reduction lookahead sets using the technique described by [15]. As part of its algorithm, step 2 also computes a set of goto tables that the remaining IELR(1) phases require.…”
Section: Phase 0: Lalr(1)mentioning
confidence: 99%
“…Only some practical improvements in LALR(k) parser construction not decreasing the exponential worstcase nature of the algorithm have been reported (for example [3,7]). Even finding a nondeterministic polynomial time algorithm for LALR(k) testing seems impossible.…”
Section: Introductionmentioning
confidence: 99%