Skip to content
Snippets Groups Projects
Commit a35e1146 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Manual: document passing of strings to macro processor

Closes #1877
parent 689355eb
Branches
Tags
1 merge request!2115Manual: document passing of strings to macro processor
......@@ -373,7 +373,9 @@ by the ``dynare`` command.
info on passing a ``MACRO_EXPRESSION`` argument containing spaces. Note
that an expression passed on the command line can reference variables
defined before it. If ``MACRO_EXPRESSION`` is omitted, the variable is
assigned the ``true`` logical value.
assigned the ``true`` logical value. Strings assigned to a macro variable
need to be enclosed in double quoted strings. This also allows for passing
single quotes within the strings.
*Example*
......@@ -381,7 +383,7 @@ by the ``dynare`` command.
.. code-block:: matlab
>> dynare <<modfile.mod>> -DA=true '-DB="A string with space"' -DC=[1,2,3] '-DD=[ i in C when i > 1 ]' -DE
>> dynare <<modfile.mod>> -DA=true '-DB="A string with space"' -DC=[1,2,3] '-DD=[ i in C when i > 1 ]' -DE -Ddatafile_name="'my_data_file.mat'"
.. option:: -I<<path>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment