Commit Graph

24 Commits (943db6fb24d9e4b01f31d084696bb8aec9010ff4)

Author SHA1 Message Date
Houtan Bastani 1ba04976aa preprocessor: macroprocessor: add -I switch. closes #1039 2015-08-27 16:49:12 +02:00
Houtan Bastani 20f2c1760b preprocessor: add @#ifndef directive 2012-06-26 15:12:31 +02:00
Houtan Bastani ebc7a783bd fix bug with @#ifdef in macroprocessor 2012-06-26 14:50:16 +02:00
Houtan Bastani c19950d358 update copyright dates for files already modified in 2012 2012-01-04 14:42:06 +01:00
Houtan Bastani 143c5f569b macroprocessor: add @#ifdef 2012-01-02 18:27:04 +01:00
Houtan Bastani 6844e2bef7 Allow commandline defines with string values 2011-06-10 13:25:16 +02:00
Houtan Bastani c42c675075 implement the possibility of passing macro-processor defines on the command-line (ticket 171) 2011-03-29 18:18:46 +02:00
Sébastien Villemot 33dee34214 MOD files ending with @#endif/@#endfor but no newline now work (closes #73) 2010-12-06 17:59:30 +01: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 2495aca72a trunk:
* updated copyright headers of all files modified since January 1st: the copyright notice now encompasses 2009
* fixed various other copyright header issues


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2364 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-01-21 14:39:24 +00:00
sebastien c6761f79dd trunk preprocessor: added option to remove @#line statements in output of macro-processor
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2361 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-01-21 13:45:44 +00:00
sebastien 8bbc105fba trunk preprocessor: for better compliance with C standard:
* replaced all occurrences of "exit(-1)" by "exit(EXIT_FAILURE)"
* return EXIT_SUCCESS at the end of main()


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2229 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-29 15:33:16 +00:00
sebastien 5ef425857a v4 preprocessor mex: various minor fixed to ensure correct compilation under g++ 4.3
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1906 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-28 11:20:45 +00:00
sebastien 39f4ef9d90 v4 preprocessor/macro: changed escape character one more time.
New syntax:
* directives: @#include "filename.mod"
* expressions to be substituted: @{expr}


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1788 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-04-10 08:16:54 +00:00
sebastien 21d00c14bb v4 preprocessor/macro: changed the macro processor escape character from @ to $
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1780 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-04-04 14:57:01 +00:00
sebastien 8e4374ad10 v4 preprocessor: another minor tweak
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1752 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-28 17:38:10 +00:00
sebastien b155cb56ba v4 preprocessor: minor improvement related to debugging of scanning & parsing
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1751 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-28 17:21:45 +00:00
sebastien c239ae9ef3 v4 preprocessor/macro:
* added @if/@then/@else
* added @echo and @error


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1738 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-07 15:58:35 +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 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
sebastien 083cae4c84 v4 preprocessor: also open included files in binary mode
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1701 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-08 17:55:37 +00:00
michel c30f1ab5bc preprocessor: opening file in binary mode solves mysterious bug with CR LF terminated lines under Cygwin
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1700 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-08 17:42:09 +00:00
michel ba0b58dfab v4: changing name of preprocessor directory
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1686 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-03 10:28:36 +00:00