Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
845a8736
Commit
845a8736
authored
Oct 02, 2013
by
Houtan Bastani
Browse files
simplify regex
parent
a34afdfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/DynareFlex.ll
View file @
845a8736
...
...
@@ -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;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment