This commit is contained in:
nub31
2025-09-10 22:33:58 +02:00
parent f25d003432
commit a6b54dfef3
21 changed files with 587 additions and 880 deletions

2
example/.gitignore vendored
View File

@@ -1,2 +1,2 @@
build
.build
out

View File

@@ -1,34 +1,15 @@
// c
module main
extern func puts(text: cstring)
struct Name
struct Test
{
first: cstring
last: cstring
}
struct Human
{
name: Name
age: cstring
}
func main(args: []cstring): i64
{
let x: Human = {
name = {
first = "bob"
last = "the builder"
}
age = "23"
}
puts(x.age)
puts("test")
return 0
}
// func test(human: ^Human)
// {
// puts(human^.name.last)
// }