OSDN Git Service

ELCCIDE(elcc/elccide.html)を追加。ブラウザ上でソースコードを編集し、即座に実行することができます。
[chnosproject/AI004.git] / ai.js
diff --git a/ai.js b/ai.js
index 77e84e9..5cb6d73 100644 (file)
--- a/ai.js
+++ b/ai.js
@@ -248,8 +248,11 @@ AI.prototype = {
        inputProcess_CompileELCHNOS_OSECPU: function(str, srctype){
                this.debug("**** Start Processing (CompileELCHNOS_OSECPU) ****\n");
                
-               var cc = new ELCHNOSCompiler(this);
-               cc.compile(str);
+               var that = this;
+               var cc = new ELCHNOSCompiler(function(s){ that.debug(s); }, this.downloadBox);
+               if(cc.compile(str) == null){
+                       cc.saveBinary();
+               }
                
                this.debug("**** End Processing (CompileELCHNOS_OSECPU) ****\n");
        },