VM works in browser for simple examples.

This commit is contained in:
2015-04-13 22:50:30 -04:00
parent decf25ed29
commit bbd72c2111
3 changed files with 6 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ c0vm = require("./c0vm.js");
// console.log(file.function_pool[0].code);
$("#run").click(function() {
var file = parser.parse($("#bytecode").text);
var input = $("#bytecode").html().replace(/(\r\n|\n|\r)/gm,"");
var file = parser.parse($("#bytecode").text());
$("#output").text(c0vm.execute(file));
});