From 32bf5c752560fec2a5a2954aa6e0a1a33d1c510b Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Fri, 28 Mar 2008 11:10:28 +0000
Subject: [PATCH] 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
---
 macro/MacroFlex.ll | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/macro/MacroFlex.ll b/macro/MacroFlex.ll
index 9e3cbab8..d3aa2406 100644
--- a/macro/MacroFlex.ll
+++ b/macro/MacroFlex.ll
@@ -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(); }
-- 
GitLab