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 eb5d78f064 ...
2025-06-21 17:57:45 +02:00

32 lines
351 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")
return 0
}