Phase 7.9: multi-file build, module braces, struct init multi-line, else-if fix

This commit is contained in:
2026-05-31 14:25:57 +03:00
parent f4de065160
commit de6e89e3df
33 changed files with 3870 additions and 326 deletions
+1
View File
@@ -352,3 +352,4 @@ func Ast_MakeDecl(kind: int, line: uint32, col: uint32) -> Decl {
extFuncDll: "", extFuncVariadic: false, extFuncRetType: null as *TypeExpr,
childDecl1: null as *Decl, childDecl2: null as *Decl };
}
}
+1
View File
@@ -263,3 +263,4 @@ func CBackend_Free(cbe: *CEmitter) {
StringBuilder_Free(&cbe.sb);
bux_free(cbe as *void);
}
}
+1
View File
@@ -165,3 +165,4 @@ func Cli_Run(args: *String, argCount: int) -> int {
PrintLine(cmd);
return 1;
}
}
+1
View File
@@ -188,3 +188,4 @@ func Hir_MakeStore(ptr: *HirNode, value: *HirNode, line: uint32, col: uint32) ->
n.child2 = value;
return n;
}
}
+1
View File
@@ -306,3 +306,4 @@ func HirLower_Free(ctx: *LowerCtx) {
bux_free(ctx.externFuncs as *void);
bux_free(ctx as *void);
}
}
+1
View File
@@ -694,3 +694,4 @@ func Lexer_Free(lex: *Lexer) {
bux_free(lex.diags as *void);
bux_free(lex as *void);
}
}
+1
View File
@@ -10,3 +10,4 @@ func Main() -> int {
var emptyArgs: *String = null as *String;
return Cli_Run(emptyArgs, 0);
}
}
+1
View File
@@ -83,3 +83,4 @@ func Manifest_Load(path: String) -> Manifest {
let content: String = ReadFile(path);
return Manifest_Parse(content);
}
}
+1
View File
@@ -1003,3 +1003,4 @@ func Parser_Free(p: *Parser) {
bux_free(p.diags as *void);
bux_free(p as *void);
}
}
+1
View File
@@ -90,3 +90,4 @@ func Scope_LookupLocal(scope: *Scope, name: String) -> Symbol {
func Scope_Free(scope: *Scope) {
bux_free(scope.symbols as *void);
}
}
+1
View File
@@ -392,3 +392,4 @@ func Sema_Free(sema: *Sema) {
bux_free(sema.diags as *void);
bux_free(sema as *void);
}
}
+1
View File
@@ -10,3 +10,4 @@ struct SourceLocation {
func SourceLocation_New(line: uint32, column: uint32, offset: uint32) -> SourceLocation {
return SourceLocation { line: line, column: column, offset: offset };
}
}
+1
View File
@@ -311,3 +311,4 @@ func Token_KindName(kind: int) -> String {
if kind == tkEndOfFile { return "end of file"; }
return "unknown token";
}
}
+1
View File
@@ -185,3 +185,4 @@ func Type_ToString(t: Type) -> String {
if t.kind == tkPointer { return "*" + t.innerName1; }
return "?";
}
}