Foreign variables, exporting some of the info to the c program, compile errors though
This commit is contained in:
@@ -181,7 +181,8 @@ struct Parse_Ctx:Lexer{
|
||||
Allocator *heap;
|
||||
Arena stage_arena;
|
||||
|
||||
U64 type_ids;
|
||||
Array<Ast_Type *> all_types;
|
||||
S32 type_ids;
|
||||
U64 unique_ids; // @Debug
|
||||
Map type_map;
|
||||
|
||||
@@ -243,7 +244,7 @@ parse_init(Parse_Ctx *ctx, Allocator *perm_allocator, Allocator *heap_allocator)
|
||||
ctx->ordered_decls = {ctx->heap};
|
||||
ctx->type_map = {ctx->heap};
|
||||
ctx->modules = {ctx->heap};
|
||||
// ctx->files = {ctx->heap};
|
||||
ctx->all_types = {ctx->heap};
|
||||
bigint_allocator = ctx->perm;
|
||||
arena_init(&ctx->stage_arena, "Compiler stage arena"_s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user