From: Akim Demaille Date: Tue, 12 Nov 2002 09:07:38 +0000 (+0000) Subject: * tests/actions.at (AT_CHECK_PRINTER_AND_DESTRUCTOR): New. X-Git-Tag: BISON-1_875~289 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/3df374151b36bb8693842c09a1904aeffc358b93?ds=inline * tests/actions.at (AT_CHECK_PRINTER_AND_DESTRUCTOR): New. Use it to test the GLR parser. --- diff --git a/ChangeLog b/ChangeLog index a6107150..7314067f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-11-12 Akim Demaille + + * tests/actions.at (AT_CHECK_PRINTER_AND_DESTRUCTOR): New. + Use it to test the GLR parser. + 2002-11-12 Akim Demaille * tests/regression.at (input.y): s/YYEOF/MYEOF/, as the skeleton diff --git a/doc/bison.texinfo b/doc/bison.texinfo index c55bb13c..645a5eba 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -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: diff --git a/tests/actions.at b/tests/actions.at index 0ed50fe4..56981c67 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -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 #include #include @@ -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])