var TypeScriptInterpret={outfile:{source:"",Write:function(a){this.source+=a},WriteLine:function(a){this.source+=a+"\n"},Clear:function(){this.source=""},Close:function(){}},interpret:function(a){this.outfile.Clear();var b=new TypeScript.TypeScriptCompiler(this.outfile);b.parser.errorRecovery=!0;b.setErrorCallback(function(a,b,c){throw"TypeScriptError: "+c+", char: "+a+", length: "+b;});b.addUnit(a,"");b.emit(!1,function(){return this.outfile})}};