This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
pacciani/bison2.patch
2014-11-29 11:25:31 +01:00

29 lines
528 B
Diff

diff --git a/Monicelli.ypp b/Monicelli.ypp
index 028506d..9817f1e 100644
--- a/Monicelli.ypp
+++ b/Monicelli.ypp
@@ -23,7 +23,7 @@
}
%skeleton "lalr1.cc"
-%require "3.0"
+%require "2.5"
%language "c++"
%defines
@@ -31,9 +31,11 @@
%locations
%token-table
-%define parse.error verbose
-%define api.namespace {monicelli}
-%define parser_class_name {Parser}
+%{
+#define YYERROR_VERBOSE
+%}
+%define namespace monicelli
+%define parser_class_name Parser
%lex-param {Scanner &scanner}
%parse-param {Scanner &scanner}