This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive-2/example/main.nub
nub31 3cb8a5b4c9 ...
2025-06-26 11:50:37 +02:00

44 lines
566 B
Plaintext

namespace main
struct Human {
name: cstring
}
export func main(args: []cstring): i64 {
// let human: Human
// human = alloc Human {
// name = "member"
// }
// c::puts(human.name)
// c::puts("literal")
// let x: cstring
// x = "variable"
// c::puts(x)
// let y: func(cstring)
// y = c::puts
// y("proxy")
// func(){ c::puts("anon") }()
// let z: func()
// z = func() { c::puts("anon variable") }
// z()
c::printf("%d\n", "test".count)
// c::puts("test")
return 0
}