//<Script type="text/javascript">
-Scope = imports.Scope.Scope;
-TokenStream = imports.TokenStream.TokenStream;
+const Scope = imports.Scope.Scope;
+const TokenStream = imports.TokenStream.TokenStream;
/**
* Scope stuff
*
*
*/
-ScopeParser = function(ts) {
+const ScopeParser = function(ts) {
this.ts = ts; // {TokenStream}
this.warnings = [];
this.indexedg = {};
this.globalScope.munge();
+ this.globalScope.dump();
+
},
// ( ... ) or { .... } not object literals..
var _this = this;
- token.items.forEach(function(expr) {
+ for (var xx =0; xx < token.items.length; xx++) {
+ expr = token.items[xx];
+ //token.items.forEach(function(expr) {
//print(expr.toString());
_this.ts = new TokenStream(expr);
//if (curTS.data == '(') {
// _this.parseExpression(scope)
//}
- });
+ }
this.ts = curTS;
//print("NOT PROPS"); Seed.quit();
//print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
- while (token = this.ts.nextTok()) {
+ while ((token = this.ts.nextTok())) {
while (token.data != "(") {
//print(token.toString());
token = this.ts.nextTok();
-
-
-
+
}
}
return false;
}
-};
\ No newline at end of file
+};