Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f9c6e1d1ea |
@@ -53,7 +53,7 @@ double parseFloat(String inputString) {
|
||||
double floatValue = 0.0;
|
||||
int currentPosition = 0;
|
||||
for (; currentPosition < inputString.length; currentPosition++) {
|
||||
if (inputString[currentPosition] == '.') {
|
||||
if (inputString[currentPosition] == '.' || inputString[currentPosition] == ',' ) {
|
||||
currentPosition++;
|
||||
break;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ Token getNextToken(String &inputString) {
|
||||
advance(inputString);
|
||||
}
|
||||
|
||||
if (inputString[0] == '.') {
|
||||
if (inputString[0] == '.' || inputString[0] == ',') {
|
||||
token.kind = KOMMA;
|
||||
advance(inputString);
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user