This commit is contained in:
nub31
2025-10-31 11:59:53 +01:00
parent c764857561
commit 031b118a24
14 changed files with 1143 additions and 995 deletions

View File

@@ -2,5 +2,5 @@
set -euo pipefail
obj=$(nubc main.nub)
clang $obj ../../runtime/.build/runtime.o -o .build/out
nubc main.nub
clang .build/main.ll -o .build/out

View File

@@ -2,20 +2,6 @@ module main
extern "puts" func puts(text: ^i8)
struct Name
extern "main" func main(argc: i64, argv: [?]^i8)
{
first: ^i8
last: ^i8
}
struct Human
{
age: u64
name: Name
}
extern "main" func main(argc: i64, argv: [?]^i8): i64
{
let x: [2]Human = [{}, {}]
return 0
}