Skip to content
Snippets Groups Projects
Commit 32bf5c75 authored by sebastien's avatar sebastien
Browse files

v4 preprocessor/macro: a double at-sign (@@) can be used to output a single...

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
parent c04b4e43
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,9 @@ EOL (\r)?\n
BEGIN(INITIAL);
}
/* Double at-sign gives a single at-sign in output: useful for Matlab function-handles */
<INITIAL>@@ { *yyout << '@'; }
<INITIAL>@ { BEGIN(MACRO); }
<MACRO>{SPC}+ { yylloc->step(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment