Commit Graph

69 Commits (47a8fd0147b53157c096808d71ba56d915cf8046)

Author SHA1 Message Date
Sébastien Villemot 314f9ccb0d It's bison 2.5 that's actually required now. 2014-01-13 14:56:56 +01:00
Houtan Bastani e0f662129a preprocessor: namespace fixes to remove clang warnings 2013-12-30 14:54:00 +01:00
Sébastien Villemot 1afd46b880 Refactor bison files using new prologue syntax. 2013-12-28 21:16:47 +01:00
Sébastien Villemot 10c4b8a080 Fix compatibility issue with Bison 3.
Closes #570
2013-12-28 21:02:15 +01:00
Houtan Bastani 9d5d6b713d Revert "macroprocessor: substitute dates, don't substitute dates preceded by $ or dates('"
This reverts commit 9be1d084fd2b510e7d229c7b0e02bde500e34ce1.
2013-11-18 12:53:55 +01:00
Houtan Bastani 71cd4c1a52 Revert macro/MacroFlex.ll of 858159a4f53e23a4654d5cb447e7a937faf30168 2013-11-18 12:53:42 +01:00
Houtan Bastani 0e6c4735ff Revert "macroprocessor: if you encounter dates(date), insert quotes"
This reverts commit 9eb34cee4a68d54a0943f41a7977899a36a60a80.
2013-11-18 12:42:48 +01:00
Houtan Bastani 9a28f4103d Revert "macroprocessor: copy anything within "dates()" straight to preprocessing stage"
This reverts commit 4f93207a30478d28f026cc1c9ac51640bd134f88.
2013-11-18 12:42:25 +01:00
Houtan Bastani 2acb921e99 Revert "simplify flex code"
This reverts commit 3d57c1e5e95de4fc36e2dee095aa8a9c187ddfc4.
2013-11-18 12:42:01 +01:00
Houtan Bastani 447177d771 simplify flex code 2013-10-23 15:28:16 +02:00
Houtan Bastani 72effd0156 macroprocessor: copy anything within "dates()" straight to preprocessing stage 2013-10-22 16:32:53 +02:00
Houtan Bastani 5b0bde1b8d macroprocessor: if you encounter dates(date), insert quotes 2013-10-22 14:06:57 +02:00
Houtan Bastani f3ef1f583f disallow -0 year 2013-10-22 14:06:57 +02:00
Houtan Bastani 9ecd0f2b41 macroprocessor: substitute dates, don't substitute dates preceded by $ or dates(' 2013-10-22 14:06:57 +02:00
Houtan Bastani 792b1b5924 macroprocessor: add length command. closes #436 2013-08-12 17:24:47 -04:00
Houtan Bastani 02e886c744 preprocessor: add @#ifndef directive 2012-06-26 15:12:31 +02:00
Houtan Bastani 2b901fef80 fix bug with @#ifdef in macroprocessor 2012-06-26 14:50:16 +02:00
Sébastien Villemot 979500a391 Macroprocessor: mention @#ifdef in error messages 2012-06-13 18:40:12 +02:00
Sébastien Villemot c19f62b2e3 Bison/Flex files: do not load C++ mode under Emacs
It is better to use bison-mode and flex-mode (see the wiki)
2012-06-04 11:59:35 +02:00
Houtan Bastani bdb3ceeb64 update copyright dates for files already modified in 2012 2012-01-04 14:42:06 +01:00
Houtan Bastani 2d15137289 macroprocessor: add @#ifdef 2012-01-02 18:27:04 +01:00
Sébastien Villemot 989e1917ec Build system: add boost includes for macroprocessor 2011-06-13 10:23:55 +02:00
Houtan Bastani 3023aa2c13 Allow commandline defines with string values 2011-06-10 13:25:16 +02:00
Houtan Bastani c209c1cdbf 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 60b70df4c1 Updated copyright notices 2011-02-04 17:27:33 +01:00
Sébastien Villemot d264b7b2e3 Reindentation of the preprocessor 2011-02-04 16:25:38 +01:00
Sébastien Villemot 98168dabd8 MOD files ending with @#endif/@#endfor but no newline now work (closes #73) 2010-12-06 17:59:30 +01:00
Sébastien Villemot 64d9a38318 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 3aa8876538 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 eec0af97b4 Build system: fixes for creation of the tarball
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2968 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 10:15:59 +00:00
sebastien 9e73eec31b Build system: fix for FlexLexer.h
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2954 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-21 10:00:47 +00:00
sebastien e337789b54 Build system: incorporate FlexLexer.h, so that one can compile on systems without flex
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2942 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-17 16:02:55 +00:00
sebastien 629b15fbd3 * Rewrite preprocessor build system with automake
* Use new autoconf macros for flex/bison
* Remove autoconf macro for dynare++


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2911 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-09 16:47:43 +00:00
sebastien f38362d812 trunk preprocessor: simplified build system (only one Makefile now)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2455 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-12 11:02:56 +00:00
sebastien b121f679bb trunk preprocessor: fix compatibility issues with Bison 2.4
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2442 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-27 14:29:08 +00:00
sebastien 2de828a643 trunk preprocessor/macro: allow empty arrays, and iteration over them in @#for loops (empty array can only be constructed through set difference for the moment)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2401 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-06 15:47:26 +00:00
sebastien 1883643772 trunk preprocessor: fixed bug in the macro-processor, when the body of a @#for loop is empty
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2399 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-05 15:54:09 +00:00
sebastien cdf47df542 trunk preprocessor: allow one line comments behind @#else
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2396 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-04 23:42:48 +00:00
sebastien e61f213a84 trunk preprocessor: allow one line comments behind @#endif and @#endfor
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2394 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-04 23:24:16 +00:00
sebastien 1740884d1d trunk preprocessor: automatic reindentation of all code with emacs
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2372 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-01-23 10:59:37 +00:00
sebastien 095ff8a75a 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 0fabc27aed 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 4ad7de7bb9 trunk preprocessor/macro: report the location of @#for or @#if statement when not matched by an @#endfor or an @#endif
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2304 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-09 16:13:03 +00:00
sebastien 045e20e284 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 6a80037dae trunk: fixed bug in operator precedence in macro-processor (+ and - had highest precedence than * and /, colon (:) precedence was too high)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2298 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-08 14:42:43 +00:00
sebastien 813e46ed73 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 bc2348f0b7 v4 preprocessor:
* DynareBison.yy: added missing declaration of MODEL_INFO as a token
* various cosmetic changes


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1995 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-25 16:45:39 +00:00
ferhat 0e9ab2ebf4 - Bugs corrections in deterministic simulation with sparse option
- Check allowed with sparse option
- New command "MODEL_INFO" providing informations about the block structure of the model
- Memory leak corrections

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1993 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-25 15:06:36 +00:00
sebastien f43efe0c12 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 90d261d53b v4 preprocessor/macro: added a difference operator on macro arrays
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1799 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-04-14 09:19:01 +00:00