v4 DynareFlex.ll: corrected handling of end of line (bug with DOS files)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@614 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-01-20 21:23:36 +00:00
parent d000e3ae0b
commit a479cc1ed1
1 changed files with 3 additions and 6 deletions

View File

@ -29,8 +29,8 @@ int sigma_e = 0;
%x NATIVE
%%
/* \r is always ignored */
<*>\r ;
/* spaces, tabs and EOL are ignored */
<*>[ \t\n\r\f] ;
/* Comments */
<INITIAL,DYNARE_STATEMENT,DYNARE_BLOCK>["%"].*
@ -253,10 +253,7 @@ int sigma_e = 0;
[\]] {return yytext[0];}
[\[] {return yytext[0];}
/* spaces, tabs and EOL are ignored */
<*>[ \t] {;}
<*>[\n] {;}
<*>[" "\t\n] {;}
/* Any other entry is writen as is */
. {_scanner->do_as_is(yytext);}