Go to file
Houtan Bastani dff540df4e preprocessor: allow passing mod file as string. Closes #1509
Usage: ./dynare_m $'<<mod file text>>'

The $’’ expands special characters. This is necessary because our setup for native matlab statements require that they end with a newline. In other words, the rest of the mod file can be sent on one line, but if there is a native matlab statement you must enter a `\n` after it.

NB: In this case, apostrophes must be escaped: ' becomes \'

e.g., to run tests/example1.mod:
./dynare_m  $'//Example 1 from Collard\'s guide to Dynare\nvar y, c, k, a, h, b;varexo e, u;verbatim;% I want these comments included in\n% example1.m 1999q1 1999y\n%\nvar = 1;\nend;parameters beta, rho, alpha, delta, theta, psi, tau;alpha = 0.36;rho   = 0.95;tau   = 0.025;beta  = 0.99;delta = 0.025;psi   = 0;theta = 2.95;phi   = 0.1;\nmodel;c*theta*h^(1+psi)=(1-alpha)*y;k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1)))*(exp(b(+1))*alpha*y(+1)+(1-delta)*k));y = exp(a)*(k(-1)^alpha)*(h^(1-alpha));k = exp(b)*(y-c)+(1-delta)*k(-1);a = rho*a(-1)+tau*b(-1) + e;b = tau*a(-1)+rho*b(-1) + u;end;initval;y = 1.08068253095672;c = 0.80359242014163;h = 0.29175631001732;k = 11.08360443260358;a = 0;b = 0;e = 0;u = 0;end;shocks;var e; stderr 0.009;var u; stderr 0.009;var e, u = phi*0.009*0.009;end; stoch_simul;'
2017-09-08 17:40:04 +02:00
macro preprocessor: allow passing mod file as string. Closes #1509 2017-09-08 17:40:04 +02:00
CodeInterpreter.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
ComputingTasks.cc preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
ComputingTasks.hh preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
ConfigFile.cc Fixed code indentation. 2017-06-14 07:01:31 +02:00
ConfigFile.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
DataTree.cc preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563 2017-08-28 17:24:56 +02:00
DataTree.hh preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563 2017-08-28 17:24:56 +02:00
Doxyfile Updated Doxygen configuration file 2009-09-08 08:06:23 +00:00
DynamicModel.cc Merge branch 'state_var' 2017-08-29 16:08:11 +02:00
DynamicModel.hh preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431 2017-08-24 16:10:53 +02:00
DynareBison.yy preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
DynareFlex.ll preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
DynareMain.cc preprocessor: allow passing mod file as string. Closes #1509 2017-09-08 17:40:04 +02:00
DynareMain1.cc preprocessor: allow passing mod file as string. Closes #1509 2017-09-08 17:40:04 +02:00
DynareMain2.cc Added option stochastic to Dynare command. 2017-08-31 10:19:43 +02:00
ExprNode.cc preprocessor: add backslashes to log output in latex. closes #1507 2017-09-08 11:06:37 +02:00
ExprNode.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
ExtendedPreprocessorTypes.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
ExternalFunctionsTable.cc Fixed copyright notices. 2017-05-16 14:11:15 +02:00
ExternalFunctionsTable.hh Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Makefile.am Add julia preprocessor to the clean rule. 2017-06-28 15:59:20 +02:00
MinimumFeedbackSet.cc Fixed code indentation. 2017-06-14 07:01:31 +02:00
MinimumFeedbackSet.hh Preprocessor: no longer use boost::graph::GraphvizDigraph class, removed in Boost 1.44 (closes #155) 2010-12-13 14:23:04 +01:00
ModFile.cc Added option stochastic to Dynare command. 2017-08-31 10:19:43 +02:00
ModFile.hh Added option stochastic to Dynare command. 2017-08-31 10:19:43 +02:00
ModelTree.cc preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563 2017-08-28 17:24:56 +02:00
ModelTree.hh preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431 2017-08-24 16:10:53 +02:00
NumericalConstants.cc Fix copyright notices 2013-06-12 17:04:46 +02:00
NumericalConstants.hh fix copyright dates 2016-05-04 16:05:31 +02:00
NumericalInitialization.cc Merge branch 'master' into json 2017-06-16 20:03:36 +02:00
NumericalInitialization.hh preprocessor: JSON output for statements, #1387 2017-02-20 11:23:10 +01:00
ParsingDriver.cc preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
ParsingDriver.hh preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
Shocks.cc Fixed code indentation. 2017-06-14 07:01:31 +02:00
Shocks.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
SigmaeInitialization.cc preprocessor: add minimal_workspace option to dynare statement, #946 2015-05-28 11:50:39 +02:00
SigmaeInitialization.hh preprocessor: add minimal_workspace option to dynare statement, #946 2015-05-28 11:50:39 +02:00
Statement.cc preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
Statement.hh preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
StaticModel.cc preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
StaticModel.hh preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
SteadyStateModel.cc preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
SteadyStateModel.hh preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
SymbolList.cc preprocessor: JSON output for statements, #1387 2017-02-20 11:23:10 +01:00
SymbolList.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
SymbolTable.cc Fixed code indentation. 2017-06-14 07:01:31 +02:00
SymbolTable.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
WarningConsolidation.cc Fixed code indentation. 2017-06-14 07:01:31 +02:00
WarningConsolidation.hh Fixed code indentation. 2017-06-14 07:01:31 +02:00
changed_files.txt fix copyright dates 2016-05-04 16:05:31 +02:00