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
issue#70
sebastien 2008-03-28 11:10:28 +00:00
parent c04b4e4355
commit 32bf5c7525
1 changed files with 3 additions and 0 deletions

View File

@ -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(); }