mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
report: display the type of the symbols
* src/print.c (print_nonterminal_symbols, print_terminal_symbols): Also should the type of the symbols.
This commit is contained in:
@@ -420,6 +420,12 @@ print_terminal_symbols (FILE *out)
|
||||
buffer[0] = 0;
|
||||
fputs (tag, out);
|
||||
END_TEST (65);
|
||||
if (symbols[token_translations[i]]->content->type_name)
|
||||
{
|
||||
column += fprintf (out, " <%s>",
|
||||
symbols[token_translations[i]]->content->type_name);
|
||||
END_TEST (65);
|
||||
}
|
||||
sprintf (buffer, " (%d)", i);
|
||||
|
||||
for (r = 0; r < nrules; r++)
|
||||
@@ -465,6 +471,9 @@ print_nonterminal_symbols (FILE *out)
|
||||
}
|
||||
|
||||
fputs (tag, out);
|
||||
if (symbols[i]->content->type_name)
|
||||
column += fprintf (out, " <%s>",
|
||||
symbols[i]->content->type_name);
|
||||
sprintf (buffer, " (%d)", i);
|
||||
END_TEST (0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user