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/program.nub
nub31 bba7906221 ...
2025-05-28 14:15:16 +02:00

30 lines
440 B
Plaintext

namespace main
struct Human {
}
/// # Documentation
/// ## Documentation subtitle
export func main(args: []^string) {
let i: i64
c::printf("%d\n", args.count)
while i < args.count {
c::printf("%s\n", args[i])
i += 1
}
let human = alloc Human {}
let arr = [10]^i64
i = 0
while i < arr.count + 1 {
c::printf("%d\n", arr[i])
i += 1
}
c::printf("success\n", "")
}