Skip to content
Snippets Groups Projects
Commit 10c4b8a0 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix compatibility issue with Bison 3.

Closes #570
parent 57d62a31
No related branches found
No related tags found
No related merge requests found
...@@ -42,19 +42,19 @@ class ParsingDriver; ...@@ -42,19 +42,19 @@ class ParsingDriver;
do { \ do { \
if (N) \ if (N) \
{ \ { \
(Current).begin = (Rhs)[1].begin; \ (Current).begin = YYRHSLOC(Rhs, 1).begin; \
(Current).end = (Rhs)[N].end; \ (Current).end = YYRHSLOC(Rhs, N).end; \
} \ } \
else \ else \
{ \ { \
(Current).begin = (Current).end = (Rhs)[0].end; \ (Current).begin = (Current).end = YYRHSLOC(Rhs, 0).end; \
} \ } \
driver.location = (Current); \ driver.location = (Current); \
} while(false) } while(false)
%} %}
%name-prefix="Dynare" %name-prefix "Dynare"
%parse-param { ParsingDriver &driver } %parse-param { ParsingDriver &driver }
%lex-param { ParsingDriver &driver } %lex-param { ParsingDriver &driver }
......
...@@ -35,7 +35,7 @@ using namespace std; ...@@ -35,7 +35,7 @@ using namespace std;
class MacroDriver; class MacroDriver;
%} %}
%name-prefix="Macro" %name-prefix "Macro"
%parse-param { MacroDriver &driver } %parse-param { MacroDriver &driver }
%parse-param { ostream &out } %parse-param { ostream &out }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment