Re: Can shift/reduce problems be eliminated?

vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick)
31 Dec 2002 23:47:00 -0500

          From comp.compilers

Related articles
Can shift/reduce problems be eliminated? ashwin21_99@hotmail.com (Ashwin) (2002-12-30)
Re: Can shift/reduce problems be eliminated? clint@0lsen.net (Clint Olsen) (2002-12-31)
Re: Can shift/reduce problems be eliminated? vugluskr@unicorn.math.spbu.ru (2002-12-31)
Re: Can shift/reduce problems be eliminated? cdc@maxnet.co.nz (Carl Cerecke) (2002-12-31)
Re: Can shift/reduce problems be eliminated? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2003-01-04)
Re: Can shift/reduce problems be eliminated? bonzini@gnu.org (2003-01-04)
Re: Can shift/reduce problems be eliminated? vugluskr@unicorn.math.spbu.ru (2003-01-04)
Re: Can shift/reduce problems be eliminated? cdc@maxnet.co.nz (Carl Cerecke) (2003-01-07)
Re: Can shift/reduce problems be eliminated? bje@redhat.com (Ben Elliston) (2003-01-07)
| List of all articles for this month |
From: vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick)
Newsgroups: comp.compilers
Date: 31 Dec 2002 23:47:00 -0500
Organization: St.Petersburg University
References: 02-12-121
Keywords: yacc, parse
Posted-Date: 31 Dec 2002 23:46:59 EST

On 30 Dec 2002 23:55:14 -0500, Ashwin wrote:
>I do get a few shift/reduce conflicts during the compilation of grammar.
>I am wondering if this is a cause for alarm. Perhaps I have not implemented
>the grammar properly. Also, I get quite a few reduce/reduce conflicts.


  I find it very helpful to run GNU bison with a -v option. By doing
  that you'll get two additional files with all the parser states
  listed and all the conflicts shown. It might give you a hint
  on what's wrong with the grammar, and it makes it easier for everybody
  else to help you when you show troublesome spots.


Thanks,
Roman.


Post a followup to this message

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