Related articles |
---|
[Newbie] LL(1) and if-then-else morin@ufr-info-p7.ibp.fr (1997-03-31) |
Re: [Newbie] LL(1) and if-then-else salomon@nickel.cs.umanitoba.ca (1997-04-02) |
Re: [Newbie] LL(1) and if-then-else tc@charlie.cns.iit.edu (Thomas W. Christopher) (1997-04-03) |
From: | salomon@nickel.cs.umanitoba.ca (Daniel J. Salomon) |
Newsgroups: | comp.compilers |
Date: | 2 Apr 1997 15:58:30 -0500 |
Organization: | Computer Science, University of Manitoba, Winnipeg, Canada |
References: | 97-03-177 |
Keywords: | LL(1) |
MORIN Bruno <morin@ufr-info-p7.ibp.fr> wrote:
|> Currently studying compilers, we need for a project to resolve the 'if
|> - then - else' ambiguity. We are programming a mini-compiler based on
|> a LL(1) grammar and are unable to resolve the ambiguity raised by an
|> 'else' statement.
A method of solving this problem is discussed in Example 4.19 on page
191 of Aho, Sethi, and Ullman, "Compilers: Principles, Techniques and
Tools," Addison Wesley, the "red-dragon" book.
--
Daniel J. Salomon -- salomon@cs.UManitoba.CA
Dept. of Computer Science / University of Manitoba
Winnipeg, Manitoba, Canada R3T 2N2 / (204) 474-8687
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.