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


Joseph S. Myers wrote:

On Tue, 28 Jan 2003, Ziemowit Laski wrote:


I respectfully part company. :-)  The grammar must, first and
foremost, be readable and maintainable.  Why else would one use a
parser generator in the first place?

Maintainability is the reason to avoid parser conflicts.  Every change to
a parser that changes the number of conflicts requires all the conflicts
to be examined carefully to ensure that the parser will parse correctly in
each case and that no conflicts have been added without good reason.

It's been on my wishlist to tweak the grammar to make Bison's complaints go
away, mostly because I don't trust it not to change randomly in some way
that causes s/r and r/r cases to come out differently.  It's just that it's
crushingly dull work, and more fun to think about adding ObjC to the new
recursive descent parser... :-)

Stan








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