fix komma problem

This commit is contained in:
2026-05-13 19:39:25 +02:00
parent a7e718ed65
commit f9c6e1d1ea
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ double parseFloat(String inputString) {
double floatValue = 0.0; double floatValue = 0.0;
int currentPosition = 0; int currentPosition = 0;
for (; currentPosition < inputString.length; currentPosition++) { for (; currentPosition < inputString.length; currentPosition++) {
if (inputString[currentPosition] == '.') { if (inputString[currentPosition] == '.' || inputString[currentPosition] == ',' ) {
currentPosition++; currentPosition++;
break; break;
} }
@@ -86,7 +86,7 @@ Token getNextToken(String &inputString) {
advance(inputString); advance(inputString);
} }
if (inputString[0] == '.') { if (inputString[0] == '.' || inputString[0] == ',') {
token.kind = KOMMA; token.kind = KOMMA;
advance(inputString); advance(inputString);
Binary file not shown.