GCC-3.2.2 bootstrap FAILURE: 1 reduce/reduce conflict in objc-parse.y
Stan Shebs
shebs@apple.com
Wed Jan 29 01:29:00 GMT 2003
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
>
More information about the Gcc-bugs
mailing list