Replaced T_INT_LITERAL and T_FLOAT_LITERAL with T_NUMERIC_LITERAL.

This commit is contained in:
Roberto Raggi
2009-07-10 15:44:47 +02:00
parent 017d865330
commit 3e54a65a69
7 changed files with 12 additions and 14 deletions

View File

@@ -348,7 +348,7 @@ void Lexer::scan_helper(Token *tok)
}
} while (_yychar);
int yylen = _currentChar - yytext;
tok->kind = T_INT_LITERAL;
tok->kind = T_NUMERIC_LITERAL;
if (control())
tok->number = control()->findOrInsertNumericLiteral(yytext, yylen);
} else {
@@ -702,7 +702,7 @@ void Lexer::scan_helper(Token *tok)
}
}
int yylen = _currentChar - yytext;
tok->kind = T_INT_LITERAL;
tok->kind = T_NUMERIC_LITERAL;
if (control())
tok->number = control()->findOrInsertNumericLiteral(yytext, yylen);
break;