Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dynare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Camilo Marchesini
dynare
Commits
31f9fe66
Verified
Commit
31f9fe66
authored
Sep 06, 2019
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: note on line endings in .mod files. closes preprocessor#14
parent
2bd223a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
doc/manual/source/the-model-file.rst
doc/manual/source/the-model-file.rst
+13
-1
No files found.
doc/manual/source/the-model-file.rst
View file @
31f9fe66
...
...
@@ -24,7 +24,7 @@ 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
.
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
.
new
line
after
each
semicolon
.
[#
feol
]
_
Most
Dynare
commands
have
arguments
and
several
accept
options
,
indicated
in
parentheses
after
the
command
keyword
.
Several
options
...
...
@@ -11198,6 +11198,18 @@ Misc commands
.. rubric:: Footnotes
.. [#feol] A ``.mod`` file must have lines that end with a line feed character,
which is not commonly visible in text editors. Files created on
Windows and Unix-based systems have always conformed to this
requirement, as have files created on OS X and macOS. Files created
on old, pre-OS X Macs used carriage returns as end of line
characters. If you get a Dynare parsing error of the form ``ERROR:
<<mod file>>: line 1, cols 341-347: syntax error,...`` and there'
s
more
than
one
line
in
your
``.
mod
``
file
,
know
that
it
uses
the
carriage
return
as
an
end
of
line
character
.
To
get
more
helpful
error
messages
,
the
carriage
returns
should
be
changed
to
line
feeds
.
..
[#
f1
]
Note
that
arbitrary
MATLAB
or
Octave
expressions
can
be
put
in
a
``.
mod
``
file
,
but
those
expressions
have
to
be
on
separate
lines
,
generally
at
the
end
of
the
file
for
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment