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-13 21:43:00 +02:00

23 lines
252 B
Plaintext

extern func puts(text: cstring)
struct Human
{
name: cstring
func print()
{
puts(this.name)
}
}
func main(args: []cstring): i64
{
let human = alloc Human {
name = "oliver"
}
human.print()
return 0
}