Grammar ambiguity

"Vassilis Kostakos" <ma9vk@bath.ac.uk>
6 Mar 2000 23:51:14 -0500

          From comp.compilers

Related articles
[8 earlier articles]
Re: Grammar ambiguity j.coulmance@itecor.com (Jocelyn Coulmance) (2000-02-19)
Re: grammar ambiguity wclodius@aol.com (2000-02-21)
Re: grammar ambiguity world!cfc@uunet.uu.net (Chris F Clark) (2000-02-27)
Re: Grammar ambiguity joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-02-27)
Re: grammar ambiguity joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-02-27)
Re: Grammar ambiguity j.coulmance@itecor.com (Jocelyn Coulmance) (2000-03-03)
Grammar ambiguity ma9vk@bath.ac.uk (Vassilis Kostakos) (2000-03-06)
Re: Grammar ambiguity torbenm@diku.dk (2000-03-11)
Re: Grammar ambiguity rodrigo.ferreira@dcc.unicamp.br (Rodrigo Augusto Barbato Ferreira) (2000-03-11)
| List of all articles for this month |
From: "Vassilis Kostakos" <ma9vk@bath.ac.uk>
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.