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
......@@ -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(); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment