//println("<B>LOG:</B>" + str + "<BR/>");
},
-
-
+
+ dumpLine : false,
+ dumpToken: function (tok, scope, brace) {
+ if (this.dumpLine == false) {
+ this.dumpLine = {
+ str : '' +tok.data,
+ scope : scope.length,
+ brace : brace
+ }
+ return;
+ }
+
+ if (this.dumpLine.scope == scope.length && this.dumpLine.brace == brace) {
+ this.dumpLine.str += ' ' + tok.data;
+ return;
+ }
+ print(
+ (new Array(this.dumpLine.scope)).join(" ") + '|' +
+ (new Array(brace)).join(" ") + this.dumpLine.str);
+
+
+ this.dumpLine = {
+ str : '' +tok.data,
+ scope : scope.length,
+ brace : brace
+ }
+
+ },
scopeIndent += ' ';
});
print(scopeIndent + ">> ENTER SCOPE");
-
+
+
+
token = this.ts.lookTok(1);
while (token) {