Skip to content
Snippets Groups Projects
Verified Commit f1beaa39 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Lexer: remove useless rule for dates

This rule is obviously incorrect (and useless):
– it begins with an unescaped dollar sign, which can only match an end-of-line
  (so it makes no sense to have it at the beginning of the rule)
– it prints to standard output, which is obviously not the intended action
parent 372d5d1a
No related branches found
No related tags found
No related merge requests found
......@@ -273,13 +273,6 @@ DATE -?[0-9]+([ya]|m([1-9]|1[0-2])|q[1-4])
unput('d');
free( yycopy );
}
<DYNARE_STATEMENT>${DATE} { yylloc->step();
#if (YY_FLEX_MAJOR_VERSION > 2) || (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION >= 6)
yyout << yytext + 1;
#else
*yyout << yytext + 1;
#endif
}
<DYNARE_STATEMENT>dates {dates_parens_nb=0; BEGIN DATES_STATEMENT; yylval->build<string>("dates");}
<DYNARE_STATEMENT>file {return token::FILE;}
<DYNARE_STATEMENT>datafile {return token::DATAFILE;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment