Merge pull request #178 from biveraxe/ver4dev

Добавляем поддержку отрицательных чисел в сценарии
This commit is contained in:
2022-08-31 08:53:34 +03:00
committed by GitHub

View File

@@ -613,8 +613,14 @@ int IoTScenario::gettok() {
return tok_identifier;
}
String NumStr="";
if (LastChar == '-') {
LastChar = getLastChar();
if (isdigit(LastChar)) NumStr = "-";
else return '-';
}
if (isdigit(LastChar)) { // Число: [0-9.]+
String NumStr;
do {
NumStr += (char)LastChar;
LastChar = getLastChar();