spl/test.sasm

38 lines
406 B
Text
Raw Normal View History

2023-04-08 20:12:35 +02:00
func main 1
with args
const str HW
Hello, world!
end HW
call println
call test
2023-04-08 20:12:35 +02:00
const mega 3
end
func test 0
call [
const func 5
const mega 0
const mega 1
const mega 2
const mega 3
const mega 4
end
call call
call ]
objcall iter
objpush
const func 1
const mega 5
call *
end
objpop
objcall map
objpush
const func 0
call _str
call println
end
objpop
objcall foreach
end