This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC-3.2.2 bootstrap FAILURE: 1 reduce/reduce conflict in objc-parse.y


On Tue, 28 Jan 2003, Ziemowit Laski wrote:
> > A reduce/reduce conflict is certainly an annoyance, but it is not a bug 
> > -- bison has a deterministic, POSIX-annointed method for dealing with 
> > it, which the grammar writer knows and expects.
 
On Tue, Jan 28, 2003 at 11:08:03PM +0000, Joseph S. Myers wrote:
> It is, at very least, very bad grammar style, as discussed in the Bison
> manual.  The grammar should be changed (even though this may make it more
> complicated) to avoid the conflict.

I disagree.  For languages that have a natural LALR(1) grammar, you are
correct, but Objective-C is not necessarily such a language.  If the current
parser works, it is wrong to risk breaking it.

My position would be different if we had a large team of active Objective-C
maintainers, but we don't.  Changing a grammar that has worked for years
for the sake of purity isn't a good idea, unless someone can demonstrate
that any proposed "fixed" grammar does not introduce any new breakage. 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]