mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-22 15:38:23 +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:
1 parent
2efaa8e96a
commit
27767290da
1 file changed
+9
@@ -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