//print("in NAME 2: " + this.ts.lookTok(2).toString());
//print(this.ts.lookTok(0).data);
+ // prefixed with '.'
if (this.ts.lookTok(0).data == ".") {
//skip '.'
break;
}
- if (this.mode == 'PASS2_SYMBOL_TREE') {
+
+ if (this.mode == 'PASS2_SYMBOL_TREE') {
identifier = this.getIdentifier(symbol, currentScope);
//println("<B>??</B>");
this.globalScope.declareIdentifier(symbol, token);
this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
} else {
- //println("undeclared")
+ println("undeclared:" + symbol)
}