From 449513cd08fdc94ed61abca63dfff6ed2fe6da17 Mon Sep 17 00:00:00 2001 From: a3boot Date: Fri, 2 Oct 2020 18:37:50 +0300 Subject: [PATCH] v0.0.23 --- lib/interpretator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interpretator.js b/lib/interpretator.js index fdf421a..4d69266 100644 --- a/lib/interpretator.js +++ b/lib/interpretator.js @@ -242,7 +242,6 @@ function parseRows(programText, programName, variables) { if (variables) { variables.forEach(function(variable, i) { - console.log(variable); variables[i] = mathParse(variable.trim(), programName); }); // console.log('CALL with Variables: ' + variables.toString()); @@ -1524,6 +1523,7 @@ function checkDef(str,programName, variables, programRow) { View.sinumerikView.parseData.variables[programName][parseDef.name].name = parseDef.name; View.sinumerikView.parseData.variables[programName][parseDef.name].type = parseDef.type; if (!variables[i]) { + //TODO Поменять имя программы и строчку на вызывающую строку главной программы. View.sinumerikView.parseData.errors.push({text:`Missing variable ${parseDef.name} value in the call. ${programName} row ${programRow + 1}`, row: programRow}); if (parseDef.type == 'real') { View.sinumerikView.parseData.variables[`${programName}`][parseDef.name].value = 0;