first functioning program... hello world (Who'da thunk it?)

This commit is contained in:
overflowerror 2014-08-08 14:23:28 +02:00
parent 396b0cd58f
commit dca3a9fd8c

View file

@ -0,0 +1,12 @@
var Hello = function() {
}
Hello.prototype = new Program();
Hello.prototype.main = function(args) {
this.output("hello world\n");
this.exit(0);
}
ProgramManager.programs.push({
command: "hello",
code: Hello
})