]> git.saurik.com Git - bison.git/commitdiff
* tests/actions.at (AT_CHECK_PRINTER_AND_DESTRUCTOR): New.
authorAkim Demaille <akim@epita.fr>
Tue, 12 Nov 2002 09:07:38 +0000 (09:07 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 12 Nov 2002 09:07:38 +0000 (09:07 +0000)
Use it to test the GLR parser.

ChangeLog
doc/bison.texinfo
tests/actions.at

index a610715078296e006bf05afa5880ec7f091367c6..7314067fd8f93d0f8bb16f067447854dbd661337 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-12  Akim Demaille  <akim@epita.fr>
+
+       * tests/actions.at (AT_CHECK_PRINTER_AND_DESTRUCTOR): New.
+       Use it to test the GLR parser.
+
 2002-11-12  Akim Demaille  <akim@epita.fr>
 
        * tests/regression.at (input.y): s/YYEOF/MYEOF/, as the skeleton
index c55bb13cc0f209a1dd8c35fcff2bd4b0297e3399..645a5eba2bd4d31ee70c8eea6ed673045f58e1e0 100644 (file)
@@ -3395,8 +3395,7 @@ should use @code{$$} to designate the semantic value associated to the
 
 @strong{Warning:} as of Bison 1.875, this feature is still considered as
 experimental, as there was not enough users feedback.  In particular,
-the syntax might still change, and for the time being, only the default
-@acronym{LALR}(1) skeleton supports this feature.
+the syntax might still change.
 @end deffn
 
 For instance:
index 0ed50fe49723a3cfa0530d7d06a3cdf543647aba..56981c67a6e528f7cc38fceea77b8748d25b8a68 100644 (file)
@@ -157,12 +157,19 @@ AT_CLEANUP
 ## Printers and Destructors.  ##
 ## -------------------------- ##
 
-AT_SETUP([Printers and Destructors])
+# _AT_CHECK_PRINTER_AND_DESTRUCTOR($1, $2, $3, BISON-DIRECTIVE)
+# -------------------------------------------------------------
+m4_define([_AT_CHECK_PRINTER_AND_DESTRUCTOR],
+[m4_if([$1$2$3], $[1]$[2]$[3], [],
+       [m4_fatal([$0: Invalid arguments: $@])])dnl
+
+AT_SETUP([Printers and Destructors: $4])
 
 # Make sure complex $n work.
 
 AT_DATA([[input.y]],
-[[%{
+[[$4
+%{
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
@@ -339,3 +346,16 @@ Parsing FAILED.
 ]])
 
 AT_CLEANUP
+])
+
+
+# AT_CHECK_PRINTER_AND_DESTRUCTOR([BISON-OPTIONS])
+# ------------------------------------------------
+# Produce `calc.y'.
+m4_define([AT_CHECK_PRINTER_AND_DESTRUCTOR],
+[_AT_CHECK_PRINTER_AND_DESTRUCTOR($[1], $[2], $[3], [$1])
+])
+
+
+AT_CHECK_PRINTER_AND_DESTRUCTOR()
+AT_CHECK_PRINTER_AND_DESTRUCTOR([%glr-parser])