Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
preprocessor
Commits
e22aa1c1
Verified
Commit
e22aa1c1
authored
6 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Compatibility issue with Bison 3.2
parent
5f5fd569
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#290
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DynareBison.yy
+10
-3
10 additions, 3 deletions
src/DynareBison.yy
with
10 additions
and
3 deletions
src/DynareBison.yy
+
10
−
3
View file @
e22aa1c1
...
@@ -34,6 +34,12 @@ class ParsingDriver;
...
@@ -34,6 +34,12 @@ class ParsingDriver;
%code requires {
%code requires {
#include "ExprNode.hh"
#include "ExprNode.hh"
#include "CodeInterpreter.hh"
#include "CodeInterpreter.hh"
/* Bison 3.2 passes semantic types through a macro, and commas in parametric
types are interpreted as macro arguments, leading to a compilation error.
Use type aliases to workaround the problem. */
using pair_2strings = pair<string,string>;
using tuple_4strings = tuple<string,string,string,string>;
}
}
%parse-param { ParsingDriver &driver }
%parse-param { ParsingDriver &driver }
...
@@ -177,14 +183,15 @@ class ParsingDriver;
...
@@ -177,14 +183,15 @@ class ParsingDriver;
%type <string> range vec_value_w_inf vec_value_1_w_inf
%type <string> range vec_value_w_inf vec_value_1_w_inf
%type <string> integer_range signed_integer_range
%type <string> integer_range signed_integer_range
%type <string> sub_sampling_options list_sub_sampling_option
%type <string> sub_sampling_options list_sub_sampling_option
%type <pair<string,string>> named_var_elem subsamples_eq_opt calibration_range integer_range_w_inf
%type <vector<pair<string,string>>> named_var named_var_1
%type <SymbolType> change_type_arg
%type <SymbolType> change_type_arg
%type <vector<string>> vec_str vec_str_1
%type <vector<string>> vec_str vec_str_1
%type <vector<string>> change_type_var_list
%type <vector<string>> change_type_var_list
%type <vector<int>> vec_int_elem vec_int_1 vec_int vec_int_number
%type <vector<int>> vec_int_elem vec_int_1 vec_int vec_int_number
%type <PriorDistributions> prior_pdf prior_distribution
%type <PriorDistributions> prior_pdf prior_distribution
%type <tuple<string,string,string,string>> prior_eq_opt options_eq_opt
// The following types use aliases, see comment above in the file
%type <pair_2strings> named_var_elem subsamples_eq_opt calibration_range integer_range_w_inf
%type <vector<pair_2strings>> named_var named_var_1
%type <tuple_4strings> prior_eq_opt options_eq_opt
%%
%%
%start statement_list;
%start statement_list;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment