Add a language.kl module which should contain builtin stuff

This commit is contained in:
Krzosa Karol
2022-06-18 19:42:59 +02:00
parent 649f37cb1b
commit c85fa02750
6 changed files with 102 additions and 78 deletions

View File

@@ -186,7 +186,8 @@ struct Parse_Ctx:Lexer{
U64 unique_ids; // @Debug
Map type_map;
Ast_Module *builtins;
Ast_Module *language_base_module;
// Array<Ast_File *> files;
Array<Ast_Module *> modules;
Array<Ast_Decl *> ordered_decls;
@@ -251,8 +252,6 @@ parse_init(Parse_Ctx *ctx, Allocator *perm_allocator, Allocator *heap_allocator)
arena_init(&ctx->stage_arena, "Compiler stage arena"_s);
lex_init(ctx->perm, ctx->heap, ctx);
ctx->builtins = ast_module(0, ctx->intern("builtins"_s));
insert_builtin_types_into_scope((Ast_Scope *)ctx->builtins);
init_type();
}