Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!accuvax.nwu.edu!nucsrl!tsaim From: tsaim@eecs.nwu.edu (Ming-Hsiun Tsai) Newsgroups: comp.unix.wizards Subject: Re: yacc reduce/reduce conflict question Message-ID: <13030008@eecs.nwu.edu> Date: 5 Sep 89 21:00:16 GMT References: <718@larry.sal.wisc.edu> Organization: Northwestern U, Evanston IL, USA Lines: 29 Dear friend: After reading the news you posted, I don't believe that YACC gave you that error-msg just coz of those two lines. I wonder there should be some other production rules that cause the conflict happen. In fact, I typein these lines (below the dash-line) and use YACC to process it. But no error. So, there should be something in your rules. How do you define the nonterminals cmd_parameter & arg? Maybe that is the key! M.S.Tsai /09/05/1989/ ---------------------------------------------------------------------------- %token MNEMONIC MNEMONIC_ %start all %% all : cmd_parameter | arg ; cmd_parameter : MNEMONIC = MNEMONIC_ ; arg : MNEMONIC_ ; %%