while (token) {
// this.timerPrint("parseScope AFTER lookT: " + token.toString());
- print(token.type + '.' + token.name+ ":" + token.data);
+ this.debug|| print(token.type + '.' + token.name+ ":" + token.data);
switch(token.type + '.' + token.name) {
case "KEYW.VAR":
case "KEYW.CONST": // not really relivant as it's only mozzy that does this.
//this.log("parseScope GOT VAR/CONST : " + token.toString());
while (true) {
token = this.ts.nextTok();
- print( token.toString());
+ this.debug|| print( token.toString());
if (!token) { // can return false at EOF!
break;
}
token = this.ts.nextTok();
- print(token.toString());
+ this.debug|| print(token.toString());
/*
assert token.getType() == Token.SEMI ||
token.getType() == Token.ASSIGN ||
//this.logR("parseScope DONE : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString());
token = this.ts.lookTok(1);
- print("AFTER EXP: " + token.toString());
+ this.debug|| print("AFTER EXP: " + token.toString());
if (token.data == ';') {
break;
}