simplify regex

issue#70
Houtan Bastani 2013-10-02 16:16:33 +02:00
parent 50d1a71aad
commit 3e5f03fadc
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ string eofbuff;
return token::INT_NUMBER;
}
<DYNARE_STATEMENT,DYNARE_BLOCK>(-?[1-2][0-9]{3}[Mm](([1-9])|(1[0-2])))|(-?[1-2][0-9]{3}[Qq][1-4])|(-?[1-2][0-9]{3}[Ww](([1-9]{1})|([1-4][0-9])|([5][0-2]))) {
<DYNARE_STATEMENT,DYNARE_BLOCK>(-?[1-2][0-9]{3}[Mm](([1-9])|(1[0-2])))|(-?[1-2][0-9]{3}[Qq][1-4])|(-?[1-2][0-9]{3}[Ww](([1-9]{1})|([1-4][0-9])|(5[0-2]))) {
yylval->string_val = new string(yytext);
return token::DATE_NUMBER;
}