Re: [Newbie] LL(1) and if-then-else (Daniel J. Salomon)
2 Apr 1997 15:58:30 -0500

          From comp.compilers

Related articles
[Newbie] LL(1) and if-then-else (1997-03-31)
Re: [Newbie] LL(1) and if-then-else (1997-04-02)
Re: [Newbie] LL(1) and if-then-else (Thomas W. Christopher) (1997-04-03)
| List of all articles for this month |

From: (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 <> 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

Post a followup to this message

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