- _(" %-4s\t[reduce using rule %d (%s)]\n"),
- escape (symbols[i]->tag),
- LAruleno[state->lookaheadsp + j] - 1,
- escape2 (symbols[rules[LAruleno[state->lookaheadsp + j]].lhs]->tag));
- }
- }
- }
+ _(" %-4s\treduce using rule %d (%s)\n"),
+ symbol_tag_get (symbols[i]),
+ LArule[state->lookaheadsp + j]->number - 1,
+ symbol_tag_get_n (LArule[state->lookaheadsp + j]->lhs, 1));
+ else
+ defaulted = 1;
+
+ count++;
+ }
+ else
+ {
+ if (defaulted)
+ fprintf (out,
+ _(" %-4s\treduce using rule %d (%s)\n"),
+ symbol_tag_get (symbols[i]),
+ LArule[default_LA]->number - 1,
+ symbol_tag_get_n (LArule[default_LA]->lhs, 1));
+ defaulted = 0;
+ fprintf (out,
+ _(" %-4s\t[reduce using rule %d (%s)]\n"),
+ symbol_tag_get (symbols[i]),
+ LArule[state->lookaheadsp + j]->number - 1,
+ symbol_tag_get_n (LArule[state->lookaheadsp + j]->lhs, 1));
+ }
+ }