|[Newbie] LL(1) and if-then-else email@example.com (1997-03-31)|
|Re: [Newbie] LL(1) and if-then-else firstname.lastname@example.org (1997-04-02)|
|Re: [Newbie] LL(1) and if-then-else email@example.com (Thomas W. Christopher) (1997-04-03)|
|From:||firstname.lastname@example.org (Daniel J. Salomon)|
|Date:||2 Apr 1997 15:58:30 -0500|
|Organization:||Computer Science, University of Manitoba, Winnipeg, Canada|
MORIN Bruno <email@example.com> 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
Search the comp.compilers archives again.