work on number parsing
This commit is contained in:
@@ -97,7 +97,7 @@ int yywrap(void * unused_param) {
|
||||
return TOKEN_STRING;
|
||||
}
|
||||
|
||||
((([0-9]+(\.[0-9]+)?)|(\.[0-9]+))(e((\-|\+)?([0-9]+(\.[0-9]+)?)))?) {
|
||||
((([0-9]+(\.[0-9]+)?)|(\.[0-9]+))(e((\-|\+)?([0-9]+)))?) {
|
||||
return TOKEN_NUMBER;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ int yywrap(void * unused_param) {
|
||||
|
||||
#[^\n]* { /* skip comment */ }
|
||||
|
||||
. {
|
||||
.|((([0-9]+(\.[0-9]+)?)|(\.[0-9]+))(e((\-|\+)?([0-9]+(\.[0-9]+)?)))?) {
|
||||
return TOKEN_INVALID;
|
||||
}
|
||||
%%
|
||||
Reference in New Issue
Block a user