Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!usc!ucsd!ucbvax!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.unix.wizards Subject: Re: yacc reduce/reduce conflict question Message-ID: <7583@goofy.megatest.UUCP> Date: 5 Sep 89 22:04:56 GMT References: <718@larry.sal.wisc.edu> Organization: Megatest Corporation, San Jose, Ca Lines: 20 From article <718@larry.sal.wisc.edu>, by jwp@larry.sal.wisc.edu (Jeffrey W Percival): > I am using yacc (for the first time) to parse a special purpose > language, and am doing pretty good, so far. I am confused on > something, though, and much pondering has failed to illuminate me. > > I hope the following yacc output fragment is enough to sketch the problem: > > [ yacc output fragment omited. ] The fragment you posted is not enough. Try removing as much as you can from the grammar while still keeping the reduce/reduce message. If it's not obvious at that point, you might try posting the smaller grammar here. I would recommmend that you study up on LR parsing. The "dragon book" by Aho and Ullman is an old favorite. Good luck, Dave Jones