mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* 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.
This commit is contained in:
@@ -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 (@$)); }
|
||||
|
||||
Reference in New Issue
Block a user