This commit is contained in:
nub31
2025-06-14 23:33:09 +02:00
parent 04fb47ef32
commit 6121334ab2
7 changed files with 156 additions and 199 deletions

View File

@@ -1,42 +1,18 @@
namespace main
struct Human {
age: u64
print_age: func() = func() {
c::puts("pwp")
}
name: string
// print_age: func() = func() {
// c::puts("test3")
// }
}
export func main(args: []^string): i64 {
let x = 2
export func main(args: [][]u8): i64 {
let x: []u8
let uwu = func() {
c::puts("uwu")
}
x = args[0]
uwu()
func() {
c::puts("owo")
}()
let me = alloc Human {
age = 23
}
me.print_age()
if true {
// do something
}
c::puts("test")
let i = 1
while i <= 10 {
c::puts("test")
i = i + 1
}
c::puts(x)
return 0
}