Grammar ambiguity

"Vassilis Kostakos" <>
6 Mar 2000 23:51:14 -0500

          From comp.compilers

Related articles
[8 earlier articles]
Re: Grammar ambiguity (Jocelyn Coulmance) (2000-02-19)
Re: grammar ambiguity (2000-02-21)
Re: grammar ambiguity world! (Chris F Clark) (2000-02-27)
Re: Grammar ambiguity (Joachim Durchholz) (2000-02-27)
Re: grammar ambiguity (Joachim Durchholz) (2000-02-27)
Re: Grammar ambiguity (Jocelyn Coulmance) (2000-03-03)
Grammar ambiguity (Vassilis Kostakos) (2000-03-06)
Re: Grammar ambiguity (2000-03-11)
Re: Grammar ambiguity (Rodrigo Augusto Barbato Ferreira) (2000-03-11)
| List of all articles for this month |

From: "Vassilis Kostakos" <>
Newsgroups: comp.compilers
Date: 6 Mar 2000 23:51:14 -0500
Organization: School of Mathematical Sciences, University of Bath, UK
Keywords: parse, question

Would it be correct to say that an ambiguous grammar is a "wrong" one?
I believe that one language can be described by more than one grammar
(at least that's what I was taught). Therefore, we can change our
ambig grammar to an unambigious one. However, does this mean that
any ambiguous grammar is "wrong"?
[Nope. You might have a situation where any of the ambiguous parses
are acceptable, or external rules to choose which of a set of parses
to use. -John]

Post a followup to this message

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