]> git.saurik.com Git - bison.git/blobdiff - src/lalr.c
* tests/actions.at (Actions after errors): New test case.
[bison.git] / src / lalr.c
index f85347a335ce6f1a201f26dc9f3397d46c59dca1..8fb3c29ea9a9229a6293e3d19478a92d863fabd2 100644 (file)
@@ -87,9 +87,7 @@ set_goto_map (void)
       int i;
       for (i = sp->num - 1; i >= 0 && TRANSITION_IS_GOTO (sp, i); --i)
        {
-         if (ngotos == GOTO_NUMBER_MAX)
-           fatal (_("too many gotos (max %d)"), GOTO_NUMBER_MAX);
-
+         assert (ngotos < GOTO_NUMBER_MAX);
          ngotos++;
          goto_map[TRANSITION_SYMBOL (sp, i)]++;
        }
@@ -403,7 +401,7 @@ lookaheads_print (FILE *out)
 {
   state_number_t i;
   int j, k;
-  fprintf (out, _("Lookaheads: BEGIN\n"));
+  fprintf (out, "Lookaheads: BEGIN\n");
   for (i = 0; i < nstates; ++i)
     {
       reductions_t *reds = states[i]->reductions;
@@ -415,19 +413,19 @@ lookaheads_print (FILE *out)
          if (reds->lookaheads[k])
            ++nlookaheads;
 
-      fprintf (out, _("State %d: %d lookaheads\n"),
+      fprintf (out, "State %d: %d lookaheads\n",
               i, nlookaheads);
 
       if (reds->lookaheads)
        for (j = 0; j < reds->num; ++j)
          BITSET_FOR_EACH (iter, reds->lookaheads[j], k, 0)
          {
-           fprintf (out, _("   on %d (%s) -> rule %d\n"),
+           fprintf (out, "   on %d (%s) -> rule %d\n",
                     k, symbols[k]->tag,
                     reds->rules[j]->number);
          };
     }
-  fprintf (out, _("Lookaheads: END\n"));
+  fprintf (out, "Lookaheads: END\n");
 }
 
 void