diff options
author | Akim Demaille <akim@epita.fr> | 2002-06-20 09:08:37 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2002-06-20 09:08:37 +0000 |
commit | 366eea36d3a9aaccf80a78c2fcd8c3cd6b563e25 (patch) | |
tree | e5986db96f7ae40e5f4d3c79a24fe0c932db609b /tests/torture.at | |
parent | 1ce5149ac8ffb10e03301661ac3abcc39de31702 (diff) | |
download | bison-366eea36d3a9aaccf80a78c2fcd8c3cd6b563e25.tar.gz |
* src/symtab.h, src/symtab.c (symbol_t): printer and
printer_location are new members.
(symbol_printer_set): New.
* src/parse-gram.y (PERCENT_PRINTER): New token.
Handle its associated rule.
* src/scan-gram.l: Adjust.
(handle_destructor_at, handle_destructor_dollar): Rename as...
(handle_symbol_code_at, handle_symbol_code_dollar): these.
* src/output.c (symbol_printers_output): New.
(output_skeleton): Call it.
* data/bison.simple (yysymprint): New. Cannot be named yyprint
since there are already many grammar files with a user `yyprint'.
Replace the calls to YYPRINT to calls to yysymprint.
* tests/calc.at: Adjust.
* tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
taking advantage of parser very internal details (stack size!).
Diffstat (limited to 'tests/torture.at')
-rw-r--r-- | tests/torture.at | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/torture.at b/tests/torture.at index f536e4b4..747201c6 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -371,9 +371,6 @@ AT_DATA([input.y], ]$1[ static int yylex (void); static void yyerror (const char *msg); -#define YYPRINT(File, Type, Value) \ - fprintf (File, " (%d, stack size = %d, max = %d)", \ - Value, yyssp - yyss + 1, yystacksize); %} %error-verbose %debug |