traces: use colors for the semantic values

This makes reading the trace slightly easier.  It would be very nice
to highlight the "big steps", especially reductions.  But this is a
private experiment: do not use it.

* data/diagnostics.css (value): New.
* src/parse-gram.y: Use no delimiters and no c quotation for strings
to facilitate debugging.
(tron, troff, TRACE): New.
Not very elegant, but until there is support for printf-formats in
libtextstyle, it shall be enough.
This commit is contained in:
Akim Demaille
2019-04-27 16:41:07 +02:00
parent 386cf25088
commit 7ea108fa67
4 changed files with 27 additions and 6 deletions

View File

@@ -544,8 +544,10 @@ m4_if(b4_skeleton, ["yacc.c"],
YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
# endif
]])dnl
b4_symbol_actions([printer])[
}
b4_percent_code_get([[pre-printer]])dnl
b4_symbol_actions([printer])
b4_percent_code_get([[post-printer]])dnl
[}
/*---------------------------.