diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-09-24 19:14:47 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-09-27 08:18:54 +0200 |
commit | ed9202a02878e0618c5ca6bc7abcac5edce81b7d (patch) | |
tree | 197c7d04318e9a3396ce72143343e15078e65949 | |
parent | 3e185c37bdb87a1539d0f331739419e3faeba516 (diff) | |
download | raptor-ed9202a02878e0618c5ca6bc7abcac5edce81b7d.tar.gz |
Use Bison directives rather than CPP macros
"%define parse.error verbose" is supported since 3.0, and support for
YYERROR_VERBOSE (deprecated since Bison 2.6, 2012-07-19), was removed
in 3.6.
-rw-r--r-- | src/turtle_parser.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/turtle_parser.y b/src/turtle_parser.y index 5339c08e..fbf33314 100644 --- a/src/turtle_parser.y +++ b/src/turtle_parser.y @@ -63,9 +63,6 @@ #endif -/* Make verbose error messages for syntax errors */ -#define YYERROR_VERBOSE 1 - /* Fail with an debug error message if RAPTOR_DEBUG > 1 */ #if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1 #define YYERROR_MSG(msg) do { fputs("** YYERROR ", RAPTOR_DEBUG_FH); fputs(msg, RAPTOR_DEBUG_FH); fputc('\n', RAPTOR_DEBUG_FH); YYERROR; } while(0) @@ -125,6 +122,9 @@ static void raptor_turtle_handle_statement(raptor_parser *parser, raptor_stateme /* Write parser header file with macros (bison -d) */ %defines +/* Make verbose error messages for syntax errors */ +%define parse.error verbose + /* Write output file with verbose descriptions of parser states */ %verbose |