* added macro processor skeleton
* added "savemacro" option, which saves the result of macro expansion in a file named "filename-macroexp.mod"; this file can be fed back to Dynare
* implemented @include directive; note that nested includes are possible; error messages in Dynare pre-processor will point to the filename effectively edited by the user
* split DynareMain.cc in two files, because of a Bison restriction: it is impossible to include both MacroDriver.hh and ParsingDriver.hh from the same source file
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1672 ac1d8469-bf42-47a9-8791-bf33cf982152
* added copyright and license notice to all source files
* used SVN changelog to determine first copyright year
* used 2003 if file present from the creation of SVN repository
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1565 ac1d8469-bf42-47a9-8791-bf33cf982152
* added an embryonic checking pass after parsing
* modified the decision of which derivatives to compute:
- if a simul statement is present, compute the jacobian vs endogenous variables only, and no hessian
- if a stoch_simul/estimation/olr/osr statement is present, compute the jacobian vs all variables, plus the hessian
- if the two previous conditions are simultaneously fulfilled, abort with an error
- if none of these two conditions are fulfilled, abort with an error (nothing to compute)
* fixed a minor bug with the size of the jacobian matrix when computing it only vs endogenous variables
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1120 ac1d8469-bf42-47a9-8791-bf33cf982152
* clearly separated the parsing process from the output writing, using an abstract intermediary representation of the mod file
* created the Statement class, and its derivatives, for that purpose
* fixed bug with "corr" statements in "shocks" blocks (variables indexes given to matlab were incorrect)
* fixed bug with "optim" option of "estimation" (this option was not passed to matlab)
* fixed bug with "dynatype" and "dynasave" (variable list was not passed correctly to matlab)
* fixed bug with "calib" and "calib_var" (they were unusable because of flex misspecification)
* fixed segmentation fault with "estimated_params_bound" and "estimation_params_init"
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1117 ac1d8469-bf42-47a9-8791-bf33cf982152