Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MichelJuillard
dynare
Commits
1bfafa0f
Commit
1bfafa0f
authored
Apr 29, 2015
by
Houtan Bastani
Browse files
preprocessor: allow syntax for estimated_params in accordance with #849
parent
372aed91
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/DynareBison.yy
View file @
1bfafa0f
...
...
@@ -1155,7 +1155,14 @@ estimated_list : estimated_list estimated_elem
{ driver.add_estimated_params_element(); }
;
estimated_elem : estimated_elem1 COMMA estimated_elem2 '
;
';
estimated_elem : estimated_elem1 COMMA estimated_elem2 '
;
'
| symbol '
;
'
{
driver.estim_params.type = 2;
driver.estim_params.name = *$1;
delete $1;
}
;
estimated_elem1 : STDERR symbol
{
...
...
@@ -1204,6 +1211,11 @@ estimated_elem2 : prior_pdf COMMA estimated_elem3
{
driver.estim_params.init_val = $1;
}
| COMMA expression_or_empty COMMA expression_or_empty
{
driver.estim_params.low_bound = $2;
driver.estim_params.up_bound = $4;
}
| expression_or_empty COMMA expression_or_empty COMMA expression_or_empty
{
driver.estim_params.init_val = $1;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment