This commit is contained in:
nub31
2025-06-26 11:50:37 +02:00
parent 493f188be4
commit 3cb8a5b4c9
12 changed files with 255 additions and 193 deletions

View File

@@ -5,35 +5,39 @@ struct Human {
}
export func main(args: []cstring): i64 {
let human: Human
// let human: Human
human = alloc Human {
name = "member"
}
// human = alloc Human {
// name = "member"
// }
c::puts(human.name)
// c::puts(human.name)
c::puts("literal")
// c::puts("literal")
let x: cstring
// let x: cstring
x = "variable"
// x = "variable"
c::puts(x)
// c::puts(x)
let y: func(cstring)
// let y: func(cstring)
y = c::puts
// y = c::puts
y("proxy")
// y("proxy")
func(){ c::puts("anon") }()
// func(){ c::puts("anon") }()
let z: func()
// let z: func()
z = func() { c::puts("anon variable") }
// z = func() { c::puts("anon variable") }
z()
// z()
c::printf("%d\n", "test".count)
// c::puts("test")
return 0
}