This commit is contained in:
nub31
2026-02-09 12:58:23 +01:00
parent bd7e3fc931
commit 5105a689df
31 changed files with 4 additions and 4187 deletions

33
compiler/test.nub Normal file
View File

@@ -0,0 +1,33 @@
struct person {
age: i32
name: string
}
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: person = struct person { age = 21 name = "Oliver" }
do_something(me.name)
return x
}
func do_something(text: string): void {
}