jam/test/test-code1.js

17 lines
280 B
JavaScript
Raw Normal View History

2024-08-27 00:16:11 +02:00
function foo () {
this.data=null;
this.goto=null;
this.act = {
main: function () { log(this.data===null)},
end: function () { kill()},
}
this.trans = {
main:end
}
this.next=main
}
compile(foo,{verbose:1})
var ag = create('foo');
print(agent(ag))
start()