-/*----------------------------------------------------.
-| When debugging the parser, display tokens' values. |
-`----------------------------------------------------*/
-
-static void
-print_token_value (FILE *file, int type, YYSTYPE const *value)
-{
- fputc (' ', file);
- switch (type)
- {
- case ID:
- fprintf (file, " = %s", value->symbol->tag);
- break;
-
- case INT:
- fprintf (file, " = %d", value->integer);
- break;
-
- case STRING:
- fprintf (file, " = \"%s\"", value->chars);
- break;
-
- case TYPE:
- fprintf (file, " = <%s>", value->uniqstr);
- break;
-
- case BRACED_CODE:
- case PERCENT_DESTRUCTOR:
- case PERCENT_LEX_PARAM:
- case PERCENT_PARSE_PARAM:
- case PERCENT_PRINTER:
- case PERCENT_UNION:
- case PROLOGUE:
- case EPILOGUE:
- fprintf (file, " = {{ %s }}", value->chars);
- break;
-
- default:
- fprintf (file, "unknown token type");
- break;
- }
-}
-