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.


_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to