/[bison]/bison/src/conflicts.c
ViewVC logotype

Diff of /bison/src/conflicts.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22.2.12 by akim, Mon Nov 19 09:11:21 2001 UTC revision 1.22.2.13 by akim, Mon Nov 19 09:12:25 2001 UTC
# Line 587  print_reductions (FILE *out, int state) Line 587  print_reductions (FILE *out, int state)
587          {          {
588            if (mask & *fp3)            if (mask & *fp3)
589              fprintf (out, _("    %-4s\t[reduce using rule %d (%s)]\n"),              fprintf (out, _("    %-4s\t[reduce using rule %d (%s)]\n"),
590                       tags[i], default_rule, tags[rlhs[default_rule]]);                       tags[i], default_rule,
591                         tags[rule_table[default_rule].lhs]);
592    
593            mask <<= 1;            mask <<= 1;
594            if (mask == 0)            if (mask == 0)
# Line 598  print_reductions (FILE *out, int state) Line 599  print_reductions (FILE *out, int state)
599          }          }
600    
601        fprintf (out, _("    $default\treduce using rule %d (%s)\n\n"),        fprintf (out, _("    $default\treduce using rule %d (%s)\n\n"),
602                 default_rule, tags[rlhs[default_rule]]);                 default_rule, tags[rule_table[default_rule].lhs]);
603      }      }
604    else if (n - m >= 1)    else if (n - m >= 1)
605      {      {
# Line 687  print_reductions (FILE *out, int state) Line 688  print_reductions (FILE *out, int state)
688                            rule = LAruleno[j];                            rule = LAruleno[j];
689                            fprintf (out,                            fprintf (out,
690                                     _("    %-4s\treduce using rule %d (%s)\n"),                                     _("    %-4s\treduce using rule %d (%s)\n"),
691                                     tags[i], rule, tags[rlhs[rule]]);                                     tags[i], rule, tags[rule_table[rule].lhs]);
692                          }                          }
693                        else                        else
694                          defaulted = 1;                          defaulted = 1;
# Line 701  print_reductions (FILE *out, int state) Line 702  print_reductions (FILE *out, int state)
702                            rule = LAruleno[default_LA];                            rule = LAruleno[default_LA];
703                            fprintf (out,                            fprintf (out,
704                                     _("    %-4s\treduce using rule %d (%s)\n"),                                     _("    %-4s\treduce using rule %d (%s)\n"),
705                                     tags[i], rule, tags[rlhs[rule]]);                                     tags[i], rule, tags[rule_table[rule].lhs]);
706                            defaulted = 0;                            defaulted = 0;
707                          }                          }
708                        rule = LAruleno[j];                        rule = LAruleno[j];
709                        fprintf (out,                        fprintf (out,
710                                 _("    %-4s\t[reduce using rule %d (%s)]\n"),                                 _("    %-4s\t[reduce using rule %d (%s)]\n"),
711                                 tags[i], rule, tags[rlhs[rule]]);                                 tags[i], rule, tags[rule_table[rule].lhs]);
712                      }                      }
713                  }                  }
714    
# Line 727  print_reductions (FILE *out, int state) Line 728  print_reductions (FILE *out, int state)
728    
729        if (default_LA >= 0)        if (default_LA >= 0)
730          fprintf (out, _("    $default\treduce using rule %d (%s)\n"),          fprintf (out, _("    $default\treduce using rule %d (%s)\n"),
731                   default_rule, tags[rlhs[default_rule]]);                   default_rule, tags[rule_table[default_rule].lhs]);
732      }      }
733  }  }
734    

Legend:
Removed from v.1.22.2.12  
changed lines
  Added in v.1.22.2.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26