Parse tree problem
- From: anandr86@xxxxxxxxx
- Date: 21 Oct 2006 22:04:57 -0700
Hi,
I was recently going through "Principles of Compiler design, Aho
and Ullman". In that it was specified that one particular grammar the
one below had two right most derivations for a single input. How is
that possible ? RMD is expanding using the right most nonterminal right
......
E -> E + E
E -> E * E
E -> (E)
E -> id
and the input is id + id * id
( The above is cited in the context of shift-reduce parsers in the book
)
.
- Follow-Ups:
- Re: Parse tree problem
- From: Michael
- Re: Parse tree problem
- From: Dave Seaman
- Re: Parse tree problem
- From: Tomekstasiowski@xxxxxxxxxxxx
- Re: Parse tree problem
- Prev by Date: Re: JSH: Take a breath
- Next by Date: Problem with a derivation tree
- Previous by thread: complex analysis with open mapping theorem.
- Next by thread: Re: Parse tree problem
- Index(es):
Relevant Pages
|