Add foreign functions

This commit is contained in:
Krzosa Karol
2022-06-07 09:56:19 +02:00
parent c5b82c0532
commit b7df759d9d
8 changed files with 32 additions and 843 deletions

View File

@@ -404,8 +404,7 @@ compile_string(String filecontent, String filename = "default_name"_s){
OS_Heap heap = win32_os_heap_create(false, mib(4), 0);
Parse_Ctx ctx = {};
ctx.init(scratch, &heap);
pctx = &ctx;
parse_init(&ctx, scratch, &heap);
F64 tokenize_begin = os_time();
lex_restream(&ctx, filecontent, filename);