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
b2b78970
Commit
b2b78970
authored
2 years ago
by
MichelJuillard
Browse files
Options
Downloads
Patches
Plain Diff
add nonstationary option to stoch_simul
parent
5543c6dc
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/DynareBison.yy
+6
-0
6 additions, 0 deletions
src/DynareBison.yy
src/DynareFlex.ll
+1
-0
1 addition, 0 deletions
src/DynareFlex.ll
with
7 additions
and
0 deletions
src/DynareBison.yy
+
6
−
0
View file @
b2b78970
...
...
@@ -190,6 +190,8 @@ class ParsingDriver;
%token MAX_NROWS SQUEEZE_SHOCK_DECOMPOSITION WITH_EPILOGUE MODEL_REMOVE MODEL_REPLACE MODEL_OPTIONS
%token VAR_REMOVE ESTIMATED_PARAMS_REMOVE BLOCK_STATIC BLOCK_DYNAMIC INCIDENCE RESID NON_ZERO LEARNT_IN PLUS_EQUAL TIMES_EQUAL
%token FSOLVE_OPTIONS
/* used by DynareJulia */
%token NONSTATIONARY
%token <vector<string>> SYMBOL_VEC
...
...
@@ -1655,6 +1657,7 @@ stoch_simul_primary_options : o_dr_algo
| o_irf_plot_threshold
| o_dr_display_tol
| o_tex
| o_nonstationary
;
stoch_simul_options : stoch_simul_primary_options
...
...
@@ -4167,6 +4170,9 @@ o_occbin_write_regimes_simul : SIMUL { driver.option_str("write_regimes.type", "
// Some options to "occbin_graph"
o_occbin_graph_noconstant : NOCONSTANT { driver.option_num("graph.steady_state", "false"); };
// options used by DynareJulila
o_nonstationary : NONSTATIONARY { driver.option_num("nonstationary", "true"); };
range : symbol ':' symbol
{ $$ = $1 + ':' + $3; }
...
...
This diff is collapsed.
Click to expand it.
src/DynareFlex.ll
+
1
−
0
View file @
b2b78970
...
...
@@ -753,6 +753,7 @@ DATE -?[0-9]+([ya]|m([1-9]|1[0-2])|q[1-4])
<DYNARE_STATEMENT>with_epilogue {return token::WITH_EPILOGUE;}
<DYNARE_STATEMENT>heteroskedastic_filter {return token::HETEROSKEDASTIC_FILTER;}
<DYNARE_STATEMENT>non_zero {return token::NON_ZERO;}
<DYNARE_STATEMENT>nonstationary {return token::NONSTATIONARY;}
<DYNARE_STATEMENT>\$[^$]*\$ {
strtok(yytext+1, "
$
");
...
...
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