this.parseScope(this.globalScope);
- this.globalScope.dump();
+ //this.globalScope.dump();
this.globalScope.munge();
while (true) {
token = this.ts.nextTok();
//!this.debug|| print( token.toString());
- //print('SCOPE-VAR-VAL:' + JSON.stringify(token, null, 4));
+ // print('SCOPE-VAR-VAL:' + JSON.stringify(token, null, 4));
if (!token) { // can return false at EOF!
break;
}
//this.logR("parseScope DONE : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString());
token = this.ts.lookTok(1);
- !this.debug|| print("AFTER EXP: " + token.toString());
+ //!this.debug||
+ // print("AFTER EXP: " + token.toString());
if (token.data == ';') {
break;
}
var _this = this;
token.items.forEach(function(expr) {
- _this.ts = new TokenStream(expr);
- _this.parseExpression(scope)
+ //print(JSON.stringify(expr, null,4));
+ _this.ts = new TokenStream(expr);
+ //if (curTS.data == '(') {
+ _this.parseScope(scope)
+ //} else {
+ // _this.parseExpression(scope)
+ //}
+
});
this.ts = curTS;
//print("NOT PROPS"); Seed.quit();
if (token.name == "EVAL") {
- //print(JSON.stringify(token, null,4));
+ print(JSON.stringify(token, null,4));
// look back one and see if we can find a comment!!!
//if (this.ts.look(-1).type == "COMM") {
if (token.prefix && token.prefix.match(/eval/)) {
*/
//this.dumpToken(token, this.scopes, this.braceNesting );
- //print('EXPR' + token.toString());
+ //print('EXPR' + token.toString());
//println("<i>"+token.data+"</i>");
break;
}
-
-
+
symbol = token.data;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
if (token.name == "EVAL") {
- //print(JSON.stringify(token,null,4));
+ print(JSON.stringify(token,null,4));
if (token.prefix && token.prefix.match(/eval:var:/g)) {
// look for eval:var:noreplace\n
// print("GOT MATCH?");
//token = getToken(-1);
//assert token.getType() == Token.CATCH;
- token = this.ts.nextTok();
+ token = this.ts.nextTok(1);
+ token = this.ts.nextTok(1);
+
- //print(JSON.stringify(token,null,4));
+ //print(JSON.stringify(this.ts,null,4));
//assert token.getType() == Token.LP; (
//token = this.ts.nextTok();
//assert token.getType() == Token.NAME;
// return function() {....
while (token.data != "(") {
- print(token.toString());
+ //print(token.toString());
token = this.ts.nextTok();