Commit 9e8614af authored by Johannes Pfeifer 's avatar Johannes Pfeifer

Document treatment of several Matlab statements in one line

Related to #1637
parent 5c75c301
Pipeline #739 passed with stages
in 99 minutes and 12 seconds
......@@ -1143,6 +1143,12 @@ A model file contains a list of commands and of blocks. Each command
and each element of a block is terminated by a semicolon
(@code{;}). Blocks are terminated by @code{end;}.
If Dynare encounters an unknown expression at the beginning of a line, it
will interpret the whole line as native Matlab code, even if there are more
statements separated by semicolons present. To prevent cryptic error
messages, it is strongly recommended to always only put one statement/command
into each line and start a new line after each semicolon.
Most Dynare commands have arguments and several accept options,
indicated in parentheses after the command keyword. Several options
are separated by commas.
......
  • This explanation does not cover the case of the .mod file in #1637 where the "Matlab code" comes after a semicolon on a line. What do you think about this? In fact, do we mention anywhere else in the manual that Dynare passes Matlab code directly into the driver file? Does that need to be addressed too?

    If Dynare encounters an unknown expression at the beginning of a line or after a semicolon, it will parse the rest of that line as native Matlab code, even if there are more statements separated by semicolons present.
  • How about the updated version at 20b51b3c

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment