Commit Graph

12 Commits (943db6fb24d9e4b01f31d084696bb8aec9010ff4)

Author SHA1 Message Date
Sébastien Villemot 931ea41f18 Fix substring operator in macro-processor.
The characters of the substring could be mixed with random characters from the
memory space. Thanks to Tom Holden for reporting the bug.

Closes #708
2014-08-12 19:30:09 +02:00
Houtan Bastani 85667336a1 macroprocessor: add length command. closes #436 2013-08-12 17:24:47 -04:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Sébastien Villemot f4557cb195 Reindentation of the preprocessor 2011-02-04 16:25:38 +01:00
Sébastien Villemot 891ad22564 Macro-processor: integer ranges with lower bound greater than upper bound are now empty (for consistency with MATLAB) 2010-05-12 11:50:27 +02:00
sebastien e6f1a53e60 Beautified preprocessor code (uncrustify + emacs + manual adjustments, in particular with templates in MacroValue)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3249 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:13:23 +00:00
sebastien 34bfaeb3ab trunk preprocessor/macro: added new 'in' operator for testing membership of an array
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2300 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-08 15:13:08 +00:00
sebastien 98f9619003 v4 preprocessor/macro: added @for loops
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1724 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-29 16:21:01 +00:00
sebastien 2af63803e8 v4 preprocessor/macro: added various checks and error messages
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1719 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-22 12:03:38 +00:00
sebastien 27f7c4834e v4 preprocessor/macro:
* added integer ranges
* added Doxygen documents for MacroValue and its subclass
* fixed string delimiter in macro language (it's double quote and not single)
* fixed problem with line count in presence of macro directives


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1714 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-20 09:56:47 +00:00
sebastien 666f93aa77 v4 preprocessor/macro: added handling of arrays
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1711 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-19 14:24:40 +00:00
sebastien 0dd30038cb v4 preprocessor/macro: added preliminary handling of expressions and @define
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1707 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-15 17:31:40 +00:00