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-bf33cf982152issue#70
parent
c04b4e4355
commit
32bf5c7525
|
@ -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(); }
|
||||
|
|
Loading…
Reference in New Issue