Working on simplifying the allocation scheme

This commit is contained in:
Krzosa Karol
2023-01-01 10:48:06 +01:00
parent d10b72057e
commit 8c0a8bf72b
9 changed files with 126 additions and 98 deletions

View File

@@ -20,13 +20,13 @@ struct Lex_Stream{
Array<Token *> indent_stack;
};
struct Parse_Ctx{
struct Core_Ctx{
Arena *perm; // Stores: AST, tokens, interns
Allocator *heap;
Scratch_Arena *scratch;
Arena stage_arena;
Arena _scratch;
Arena *scratch;
// Lexer stuff
Lex_Stream stream;