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/examples/hello-world/main.nub
2025-10-16 13:44:19 +02:00

34 lines
388 B
Plaintext

module "main"
extern "puts" func puts(text: cstring)
struct Human
{
name: cstring
func print()
{
puts("human")
}
}
extern "main" func main(args: []cstring): i64
{
puts("test")
let test: Human = {
name = "uwu"
}
if false
{
puts("uwu")
}
while true
{
puts("count")
}
test.print()
return 0
}