Houtan Bastani
cd66cf7bbf
fix copyright dates
2016-03-15 12:45:57 +01:00
Sébastien Villemot
42d166e272
Fix compatibility with Flex 2.6.
...
In Flex 2.6, the C++ scanner changed. yyout is now a reference (and no
longer a pointer).
2016-03-14 16:28:24 +01:00
Houtan Bastani
035b6ea463
Revert "preprocessor: add utf-8 tokenizing"
...
This reverts commit f2cc9d389954f16dbb88c3401e90c7981e3599d6.
This commit causes warnings in Flex
2015-10-30 18:27:41 +01:00
Houtan Bastani
7cc90013cd
Merge branch 'julia'
2015-09-01 11:35:16 +02:00
Houtan Bastani
ee6880bfdb
preprocessor: macroprocessor: add @#includepath macro. #1039
2015-08-28 14:43:26 +02:00
Houtan Bastani
38443b0775
preprocessor: fix bug introduced in 1ba04976aac043deca38edb03e0dfc866dfadd67. #1039
2015-08-28 11:13:19 +02:00
Houtan Bastani
9f90d6ae8c
preprocessor: macroprocessor: add -I switch. closes #1039
2015-08-27 16:49:12 +02:00
Houtan Bastani
33f2e2077c
preprocessor: add utf-8 tokenizing
2015-08-17 17:09:40 +02:00
Houtan Bastani
3cdbc65607
macroprocessor: fix memory leak
2015-02-25 09:03:48 +01:00
Houtan Bastani
5498783e4c
macroprocessor: add support for passing macro values to @#include statement, closes #848
2015-02-24 14:43:19 +01:00
Houtan Bastani
dd36a7c255
fix copyright date
2015-02-18 04:00:11 +01:00
Houtan Bastani
1a08cd1ffc
modify error message when @#endfor and @#endif not followed by newline at EOF. closes #706
2015-02-18 03:54:31 +01: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
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
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
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
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
8b7201ac17
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
de9c719aa4
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
5771aa9a1e
v4 preprocessor/macro: bugfix related to nested @for and @if structures
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1770 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-04-02 07:40:09 +00:00
sebastien
32bf5c7525
v4 preprocessor/macro: a double at-sign (@@) can be used to output a single at-sign (@); useful for Matlab function handles
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1747 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-28 11:10:28 +00:00
sebastien
c04b4e4355
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
dd7764f484
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
818e571fdc
v4 preprocessor/macro: cosmetic changes in the stack used for nested includes
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1720 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-22 14:03:46 +00:00
sebastien
e56af01f04
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
2e8251ebfd
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
8412f57c90
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
8149bfc2d7
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
sebastien
b9441c887e
v4 preprocessor: ignore Ctrl-M in macro-processor
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1699 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-08 13:10:10 +00:00
michel
2a69caa17b
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