Browse Source

fix: Fix a bug with expression in parenthesis

Add missing token stream position increment in expression with parenthesis parser
Lucas de Souza 2 years ago
parent
commit
3f1b28f83c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      js/ast/ivprogParser.js

+ 1 - 0
js/ast/ivprogParser.js

@@ -1520,6 +1520,7 @@ export class IVProgParser {
   parseParenthesisExp () {
     this.checkOpenParenthesis();
     const tokenA = this.getToken();
+    this.pos += 1;
     this.consumeNewLines();
     const exp = this.parseExpressionOR();
     this.consumeNewLines();