Small allocator changes, fix crash

This commit is contained in:
Krzosa Karol
2022-12-31 21:05:13 +01:00
parent d75c54f61f
commit d5179bb596
2 changed files with 15 additions and 9 deletions

View File

@@ -22,8 +22,11 @@ struct Lex_Stream{
struct Parse_Ctx{
Arena *perm; // Stores: AST, tokens, interns
Allocator *heap;
Arena stage_arena;
Arena scratch;
Arena _scratch;
Arena *scratch;
// Lexer stuff
Lex_Stream stream;