better comments in generated code

This commit is contained in:
nub31
2025-09-12 23:29:55 +02:00
parent d6e5c64a4b
commit b900c706ef
2 changed files with 22 additions and 12 deletions

View File

@@ -1,18 +1,27 @@
module "main"
export extern "puts" func puts(text: cstring)
extern "puts" func puts(text: cstring)
export struct Human
struct Name
{
name: cstring
first: cstring
last: cstring
}
struct Human
{
name: Name
}
extern "main" func main(args: []cstring): i64
{
let x: cstring = "test"
let x: Human = {
name = {
first = "oliver"
last = "stene"
}
}
x = x + "uwu"
puts(x)
puts(x.name.last)
return 0
}