rebuilt parser and rewrote the asserts wrapping loop in Cakefile using do =>

This commit is contained in:
satyr
2010-10-25 00:14:58 +09:00
parent 9619fa66eb
commit abef3f59be
4 changed files with 9 additions and 8 deletions

View File

@@ -1053,7 +1053,7 @@
this.bound = false;
return new Call(new Value(this, [new Accessor(new Literal('call'))]), [new Literal('this')].concat(this.params));
} else {
return new Call(this, this.params);
return new Call(this);
}
};
return Code;

View File

@@ -115,7 +115,7 @@ case 52:this.$ = new yy.Comment($$[$0-1+1-1]);
break;
case 53:this.$ = new yy.Existence($$[$0-2+1-1]);
break;
case 54:this.$ = new yy.Call($$[$0-2+2-1], $$[$0-2+2-1].params);
case 54:this.$ = $$[$0-2+2-1]["do"]();
break;
case 55:this.$ = new yy.Code($$[$0-5+2-1], $$[$0-5+5-1], $$[$0-5+4-1]);
break;