c generator

This commit is contained in:
nub31
2025-10-16 13:44:19 +02:00
parent 4ca2b39652
commit f7f32b8d23
11 changed files with 814 additions and 117 deletions

View File

@@ -0,0 +1,34 @@
module "main"
extern "puts" func puts(text: cstring)
struct Human
{
name: cstring
func print()
{
puts("human")
}
}
extern "main" func main(args: []cstring): i64
{
puts("test")
let test: Human = {
name = "uwu"
}
if false
{
puts("uwu")
}
while true
{
puts("count")
}
test.print()
return 0
}