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/example/src/main.nub
2025-08-18 21:25:03 +02:00

20 lines
231 B
Plaintext

// c
extern func puts(text: cstring)
struct Human {
name: cstring
age: u32
}
func main(args: []cstring): i64
{
let x: Human = struct {
name = "Oliver"
age = 23
}
puts(x.name)
return 0
}