help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning: rule never reduced because of conflicts: @3: /* empty */


From: Eduardo Robles Elvira
Subject: warning: rule never reduced because of conflicts: @3: /* empty */
Date: Sun, 1 May 2005 12:44:12 +0200
User-agent: KMail/1.7.2

Hi !

I've added some mid-rule actions, and I get a message like this one:

$ bison --verbose -d lea.y
lea.y: conflicts: 4 shift/reduce, 3 reduce/reduce
lea.y:293.17-40: warning: rule never reduced because of conflicts: @3: /* 
empty */
lea.y:317.17-40: warning: rule never reduced because of conflicts: @4: /* 
empty */
lea.y:337.9-31: warning: rule never reduced because of conflicts: @5: /* empty 
*/

When I normally get:

$ bison --verbose -d lea.y
lea.y: conflicts: 1 shift/reduce, 3 reduce/reduce
(I don't bother now about that  1 shift/reduce, 3 reduce/reduce :-)

This are the affected lines in lea.y:

----- lines 292 to 294: -----
 | id_list 
  { TRconst_dcl_reg($1); }
  ':' register
---------------------------------------

----- lines 316 to 318: -----
 | id_list 
  { TRtypes_dcl_reg($1); }
  ':' register
---------------------------------------

----- lines 334 to 340: -----
vars_dcl:
 vars_noreg_dcl_list
 | id_list
 { TRvars_dcl_reg($1); }
 ':' register  //TODO: !!!!!
 vars_dcl
;
---------------------------------------

Thanks in advance,
           Edulix.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]