1
0
Kaynağa Gözat

Fix For increment command checking for EOS

Lucas de Souza 6 yıl önce
ebeveyn
işleme
2f2fd2796a
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      js/ast/ivprogParser.js

+ 4 - 2
js/ast/ivprogParser.js

@@ -720,8 +720,10 @@ export class IVProgParser {
     }
     this.pos++
     const exp = this.parseExpressionOR();
-    this.checkEOS();
-    this.pos++;
+    if(!isLast) {
+      this.checkEOS();
+      this.pos++;
+    }
     return new Commands.Assign(id, exp);
   }