From 9999eea970ba75387a53496aa39ffc05a3f11516 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Thu, 2 Aug 2012 09:08:45 +0200 Subject: [PATCH] parser.yy: Use Bison directives rather than preprocessor macros YYERROR_VERBOSE has been deprecated in Bison 2.6. --- lily/parser.yy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lily/parser.yy b/lily/parser.yy index 3365511158..fc9aea63be 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -29,9 +29,6 @@ %{ -#define YYDEBUG 1 -#define YYERROR_VERBOSE 1 - #define yyerror Lily_parser::parser_error /* We use custom location type: Input objects */ @@ -44,6 +41,8 @@ %parse-param {Lily_parser *parser} %lex-param {Lily_parser *parser} +%error-verbose +%debug /* We use SCMs to do strings, because it saves us the trouble of deleting them. Let's hope that a stack overflow doesn't trigger a move -- 2.39.5