Module system

This commit is contained in:
nub31
2025-09-11 23:03:44 +02:00
parent 8c76f75f7c
commit 0fd1af7e60
15 changed files with 265 additions and 167 deletions

View File

@@ -1,9 +1,20 @@
module "main"
import "test"
extern "puts" func puts(text: cstring)
export extern "puts" func puts(text: cstring)
struct Human
{
name: cstring
age: u64
}
func main(args: []cstring): i64
{
puts("test")
let me: main::Human = {
name = "Oliver"
age = 21
}
return 0
}