} else {
//print("EXPR-NAME:" + token.toString());
}
- symbol = token.data;
+ var symbol = token.data;
//print("in NAME = " + token.toString());
//print("in NAME 0: " + this.ts.look(0).toString());
//print("in NAME 2: " + this.ts.lookTok(2).toString());
if (this.mode == ScopeParserMode.PASS2_SYMBOL_TREE) {
- identifier = this.getIdentifier(symbol, scope, token);
+ var identifier = this.getIdentifier(symbol, scope, token);
//println("<B>??</B>");
if (identifier == false) {
// We don't need to declare longer symbols since they won't cause
// any conflict with other munged symbols.
this.globalScope.declareIdentifier(symbol, token);
- this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
+ this.warn("Found an undeclared symbol: " + symbol + " (line:" + token.line + ")", true);
//print("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')');
//throw "OOPS";
} else {
//println("<B>EID</B>");
- case 'KEYW':
+ case "KEYW":
//if (this.mode == 'BUILDING_SYMBOL_TREE')
// print("EXPR-KEYW:" + JSON.stringify(token, null, 4));
}
- symbol = token.data;
- if (this.mode == 'BUILDING_SYMBOL_TREE') {
+ var symbol = token.data;
+ if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
if (token.name == "EVAL") {
//print(JSON.stringify(token,null,4));
}
//print("<< EXIT EXPRESSION");
this.expN--;
- },
+ }
parseCatch : function(scope) {