Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
8ea71f4d
Commit
8ea71f4d
authored
May 23, 2017
by
Uwe Schulzweida
Browse files
expr: addeed support for variables starting with digits.
parent
a9dcde29
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
8ea71f4d
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
* Using CDI library version 1.8.3
* Using CDI library version 1.8.3
* Version 1.9.0 release
* Version 1.9.0 release
2017-05-23 Uwe Schulzweida
* expr: addeed support for variables starting with digits
2017-05-22 Uwe Schulzweida
2017-05-22 Uwe Schulzweida
* settbounds: added support for hourly frequencies
* settbounds: added support for hourly frequencies
...
...
src/expr_lex.cc
View file @
8ea71f4d
This diff is collapsed.
Click to expand it.
src/expr_lex.l
View file @
8ea71f4d
...
@@ -76,6 +76,11 @@ M_E {
...
@@ -76,6 +76,11 @@ M_E {
return VARIABLE;
return VARIABLE;
}
}
{LPHDGT}*{LPH}{LPHDGT}* {
yylval->varnm = strdup(yytext);
return VARIABLE;
}
[-()=+*/;,{}^.?:] {
[-()=+*/;,{}^.?:] {
return *yytext;
return *yytext;
...
...
src/yacc_lex
View file @
8ea71f4d
# bison version 3.0.4; flex version 2.
5.37
# bison version 3.0.4; flex version 2.
6.1
bison -W -y -r all -o expr_yacc.c -d expr_yacc.y
bison -W -y -r all -o expr_yacc.c
c
-d expr_yacc.y
flex -v -oexpr_lex.c expr_lex.l
flex -v -oexpr_lex.c
c
expr_lex.l
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