Skip to content

Commit

Permalink
v0.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
staniska committed Oct 2, 2020
1 parent 3344e0c commit 449513c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interpretator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 449513c

Please sign in to comment.