summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2004-09-02 13:04:11 +0000
committerAkim Demaille <akim@epita.fr>2004-09-02 13:04:11 +0000
commita5eb1ed262e86657c5af95e4a8eae258a2e49e4b (patch)
tree4ff4ce85b0b084576eb25e19a83a91fc1b9e66be /tests
parent417141dd6134bdb32a1a7d64b2bac4f8bcca0461 (diff)
downloadbison-a5eb1ed262e86657c5af95e4a8eae258a2e49e4b.tar.gz
* tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Adjust
%printer calls to use cdebug_ when using lalr1.cc. * data/lalr1.cc (b4_yysymprint_generate): New.
Diffstat (limited to 'tests')
-rw-r--r--tests/actions.at8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/actions.at b/tests/actions.at
index 1e8d62f4..e8124e9e 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -342,8 +342,12 @@ m4_ifval([$6], , [#define YYSTYPE int])])
]m4_ifval([$6], [%type <ival> 'x' ';' thing line input])[
-%printer { fprintf (yyoutput, "%d@%d-%d", $$, RANGE (@$)); }
- input line thing 'x'
+%printer
+ {
+ ]AT_LALR1_CC_IF([cdebug_ << @$ << ": " << $$;],
+ [fprintf (yyoutput, "%d@%d-%d", $$, RANGE (@$))])[;
+ }
+ input line thing 'x'
%destructor
{ printf ("Freeing nterm input (%d@%d-%d)\n", $$, RANGE (@$)); }