now it is also case nonsensitive
This commit is contained in:
2
lex.ll
2
lex.ll
@@ -446,7 +446,7 @@ L?\"(\\.|[^\\"])*\" { lStringConst(&yylval, &yylloc); return TOKEN_STRING_LITERA
|
|||||||
RT;
|
RT;
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (yytext[i] != 'd') i++;
|
while (yytext[i] != 'd' && yytext[i] != 'D') i++;
|
||||||
yytext[i] = 'E';
|
yytext[i] = 'E';
|
||||||
}
|
}
|
||||||
yylval.doubleVal = atof(yytext);
|
yylval.doubleVal = atof(yytext);
|
||||||
|
|||||||
Reference in New Issue
Block a user