//print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
- while (token = this.ts.lookTok()) {
+ while (token = this.ts.nextTok()) {
var ts = this.ts;
var _this = this;
token.items.forEach(function(ns) {
- print("EXPR-PUNC[:" + JSON.stringify(ns, null, 4));
+ print("EXPR-PUNC-MAKE:" + JSON.stringify(ns, null, 4));
_this.ts = new TokenStream(ns);
- _this.ts.cursor--;
+ //_this.ts.cursor--;
_this.parseExpression();
});
this.ts = ts;
print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
break;
}
- if (!this.ts.nextTok()) break;
+
}
print("<< EXIT EXPRESSION");
this.expN--;