Phase 7.9: multi-file build, module braces, struct init multi-line, else-if fix
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,3 +263,4 @@ func CBackend_Free(cbe: *CEmitter) {
|
||||
StringBuilder_Free(&cbe.sb);
|
||||
bux_free(cbe as *void);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,3 +165,4 @@ func Cli_Run(args: *String, argCount: int) -> int {
|
||||
PrintLine(cmd);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,3 +188,4 @@ func Hir_MakeStore(ptr: *HirNode, value: *HirNode, line: uint32, col: uint32) ->
|
||||
n.child2 = value;
|
||||
return n;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,3 +306,4 @@ func HirLower_Free(ctx: *LowerCtx) {
|
||||
bux_free(ctx.externFuncs as *void);
|
||||
bux_free(ctx as *void);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -694,3 +694,4 @@ func Lexer_Free(lex: *Lexer) {
|
||||
bux_free(lex.diags as *void);
|
||||
bux_free(lex as *void);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,3 +10,4 @@ func Main() -> int {
|
||||
var emptyArgs: *String = null as *String;
|
||||
return Cli_Run(emptyArgs, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,3 +83,4 @@ func Manifest_Load(path: String) -> Manifest {
|
||||
let content: String = ReadFile(path);
|
||||
return Manifest_Parse(content);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1003,3 +1003,4 @@ func Parser_Free(p: *Parser) {
|
||||
bux_free(p.diags as *void);
|
||||
bux_free(p as *void);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,3 +90,4 @@ func Scope_LookupLocal(scope: *Scope, name: String) -> Symbol {
|
||||
func Scope_Free(scope: *Scope) {
|
||||
bux_free(scope.symbols as *void);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,3 +392,4 @@ func Sema_Free(sema: *Sema) {
|
||||
bux_free(sema.diags as *void);
|
||||
bux_free(sema as *void);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,3 +10,4 @@ struct SourceLocation {
|
||||
func SourceLocation_New(line: uint32, column: uint32, offset: uint32) -> SourceLocation {
|
||||
return SourceLocation { line: line, column: column, offset: offset };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -311,3 +311,4 @@ func Token_KindName(kind: int) -> String {
|
||||
if kind == tkEndOfFile { return "end of file"; }
|
||||
return "unknown token";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,3 +185,4 @@ func Type_ToString(t: Type) -> String {
|
||||
if t.kind == tkPointer { return "*" + t.innerName1; }
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user