Skip to content
Snippets Groups Projects
Commit 885080ea authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'doc_string' into 'master'

Manual: document passing of strings to macro processor

Closes #1877

See merge request Dynare/dynare!2115
parents 689355eb a35e1146
No related branches found
No related tags found
No related merge requests found
...@@ -373,7 +373,9 @@ by the ``dynare`` command. ...@@ -373,7 +373,9 @@ by the ``dynare`` command.
info on passing a ``MACRO_EXPRESSION`` argument containing spaces. Note info on passing a ``MACRO_EXPRESSION`` argument containing spaces. Note
that an expression passed on the command line can reference variables that an expression passed on the command line can reference variables
defined before it. If ``MACRO_EXPRESSION`` is omitted, the variable is 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* *Example*
...@@ -381,7 +383,7 @@ by the ``dynare`` command. ...@@ -381,7 +383,7 @@ by the ``dynare`` command.
.. code-block:: matlab .. 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>> .. option:: -I<<path>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment