Generating comprehensive type infos

This commit is contained in:
Krzosa Karol
2022-06-18 16:24:54 +02:00
parent e63dc0322a
commit 649f37cb1b
5 changed files with 45 additions and 14 deletions

View File

@@ -196,6 +196,7 @@ struct Parse_Ctx:Lexer{
S64 indent;
String_Builder gen;
String_Builder helper_builder;
};
global B32 emit_line_directives;
@@ -245,6 +246,7 @@ parse_init(Parse_Ctx *ctx, Allocator *perm_allocator, Allocator *heap_allocator)
ctx->type_map = {ctx->heap};
ctx->modules = {ctx->heap};
ctx->all_types = {ctx->heap};
ctx->helper_builder= {ctx->heap};
bigint_allocator = ctx->perm;
arena_init(&ctx->stage_arena, "Compiler stage arena"_s);