This repository has been archived on 2025-10-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive/examples/hello-world/main.nub
nub31 4a01fbc306 ...
2025-10-21 20:22:18 +02:00

20 lines
259 B
Plaintext

module "main"
extern "puts" func puts(text: cstring)
struct Human {
age: u32
name: cstring
}
extern "main" func main(args: []cstring): i64
{
let human: Human = {
name = "test"
age = 23
}
puts(human.name)
return 0
}