mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
* src/getargs.h (trace_e): Add trace_scan, and trace_parse.
* src/getargs.c (trace_types, trace_args): Adjust. * src/reader.c (grammar_current_rule_prec_set) (grammar_current_rule_dprec_set, grammar_current_rule_merge_set): Standardize error messages. And s/@prec/%prec/! (reader): Use trace_flag to enable scanner/parser debugging, instead of an adhoc scheme. * src/scan-gram.l: Remove trailing debugging code.
This commit is contained in:
@@ -107,18 +107,7 @@ blanks [ \t\f]+
|
||||
%{
|
||||
/* At each yylex invocation, mark the current position as the
|
||||
start of the next token. */
|
||||
#define TR_POS 0
|
||||
#if TR_POS
|
||||
fprintf (stderr, "FOO1: %p: ", yylloc);
|
||||
LOCATION_PRINT (stderr, *yylloc);
|
||||
fprintf (stderr, "\n");
|
||||
#endif
|
||||
YY_STEP;
|
||||
#if TR_POS
|
||||
fprintf (stderr, "BAR1: ");
|
||||
LOCATION_PRINT (stderr, *yylloc);
|
||||
fprintf (stderr, "\n");
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user