Foreign variables, exporting some of the info to the c program, compile errors though

This commit is contained in:
Krzosa Karol
2022-06-18 16:01:05 +02:00
parent 0ed4f62557
commit e63dc0322a
7 changed files with 47 additions and 11 deletions

View File

@@ -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);