Re: Beginner help with LALR(1) closure

salomon@silver.cs.umanitoba.ca (Daniel J. Salomon)
19 Nov 1996 23:34:10 -0500

          From comp.compilers

Related articles
Beginner help with LALR(1) closure kentr@rollinssoft.com (Kent Rollins) (1996-11-12)
Re: Beginner help with LALR(1) closure dlester@cs.man.ac.uk (1996-11-14)
Re: Beginner help with LALR(1) closure grout@sp55.csrd.uiuc.edu (1996-11-14)
Re: Beginner help with LALR(1) closure compres@world.std.com (1996-11-14)
Re: Beginner help with LALR(1) closure farzu@cs.tamu.edu (Francisco Arzu) (1996-11-14)
Re: Beginner help with LALR(1) closure adrian@dcs.rhbnc.ac.uk (1996-11-19)
Re: Beginner help with LALR(1) closure salomon@silver.cs.umanitoba.ca (1996-11-19)
Re: Beginner help with LALR(1) closure gianni@engr.sgi.com (Gianni Mariani) (1996-12-03)
Re: Beginner help with LALR(1) closure icedancer@ibm.net (1996-12-07)
Re: Beginner help with LALR(1) closure salomon@silver.cs.umanitoba.ca (1996-12-15)
| List of all articles for this month |

From: salomon@silver.cs.umanitoba.ca (Daniel J. Salomon)
Newsgroups: comp.compilers
Date: 19 Nov 1996 23:34:10 -0500
Organization: Computer Science, University of Manitoba, Winnipeg, Canada
References: 96-11-080 96-11-088
Keywords: LALR

grout@sp55.csrd.uiuc.edu (John R. Grout) writes:
|> When in doubt, go back to the source... a classic paper on computing
|> LALR(1) lookahead sets is by Frank DeRemer and Thomas Pennello,
|> "Efficient Computation of LALR(1) Look-Ahead Sets, ACM Transactions on
|> Programming Languages and Systems, Volume 4, No 4 (October 1982),
|> pp. 615-649...


Woa! That's a pretty heavy-duty reference for a beginner. Their
method is more efficient than the ones given in the Dragon book, but
quite complex to understand from their paper. If he really does want
to do efficient generation of LALR(1) sets, he can check the shorter
and clearer explanation of DeRemer and Pennello's paper in Tremblay &
Sorenson "The Theory and Practice of Compiler Writing" McGraw Hill,
1985 page 375. I used this simplified description to teach the
algorithm to my graduate students.


--
Daniel J. Salomon -- salomon@cs.UManitoba.CA
              Dept. of Computer Science / University of Manitoba
              Winnipeg, Manitoba, Canada R3T 2N2 / (204) 474-8687
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.