mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
yacc.c: no longer support YYERROR_VERBOSE
Supporting YYERROR_VERBOSE via cpp is a nuisance: m4 is in charge of handling alternatives. When adding more options for %define parse.error, supporting both CPP and M4 is too complex. Anyway, YYERROR_VERBOSE was deprecated long ago. * data/skeletons/yacc.c: Use m4 only to handle verbose/simple error messages.
This commit is contained in:
@@ -309,7 +309,6 @@ AT_DATA_GRAMMAR([input.y],
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#define YYERROR_VERBOSE 1
|
||||
]AT_YYERROR_DEFINE[
|
||||
/* The current argument. */
|
||||
static const char *input;
|
||||
@@ -324,6 +323,8 @@ yylex (void)
|
||||
|
||||
%}
|
||||
|
||||
%define parse.error verbose
|
||||
|
||||
%nonassoc '<' '>'
|
||||
|
||||
%%
|
||||
|
||||
Reference in New Issue
Block a user