Browse Source

Fix a bug where a functions command would not run in sync with the store and context processing instructions

Add source information to Break command
Lucas de Souza 3 years ago
parent
commit
9c94451597
2 changed files with 382 additions and 251 deletions
  1. 381 250
      js/ast/ivprogParser.js
  2. 1 1
      js/processor/ivprogProcessor.js

File diff suppressed because it is too large
+ 381 - 250
js/ast/ivprogParser.js


+ 1 - 1
js/processor/ivprogProcessor.js

@@ -146,7 +146,7 @@ export class IVProgProcessor {
       funcStore,
       funcStore,
       func.variablesDeclarations
       func.variablesDeclarations
     );
     );
-    const finalSto = this.executeCommands(stoWithVars, func.commands);
+    const finalSto = await this.executeCommands(stoWithVars, func.commands);
     this.stores.pop();
     this.stores.pop();
     this.context.pop();
     this.context.pop();
     return finalSto;
     return finalSto;