ona/debug/app.ona

34 lines
398 B
Plaintext

var printer = lambda (pfx):
return lambda (msg):
@print("This is a func call")
@print(msg)
end
end
let pr = printer("This is a func call")
var i = 0
pr("")
while i < 5:
pr("hello, world")
i = i + 1
end
if i > 6:
pr("`i` greater than `6`")
elif i == 4:
pr("`i` is equal to `4`")
else:
pr("i'unno")
end
return {
.title = "Game",
.width = 1280,
.height = 800,
.tick_rate = 60,
}