libs working

This commit is contained in:
nub31
2026-02-10 22:43:03 +01:00
parent 576abe1240
commit 9d8d8f255a
13 changed files with 234 additions and 30 deletions

32
examples/test/test.nub Normal file
View File

@@ -0,0 +1,32 @@
module main
let global: i32
func main(): i32 {
let x: i32 = 23
x = 24
if !true {
x = 49
return x
} else {
x = 3
}
let i: i32 = 0
x = 1 + 2 * 34
while i < 10 {
i = i + 1
x = i
}
let me: test::person = struct test::person { age = 21 name = "Oliver" }
x = test::do_something(me.name)
test::do_something(me.name)
main::global = 123
return main::global
}