Much better allocation strategy with new ncore arenas. Add more builtin node gen stuff. It's kind of wonky.

This commit is contained in:
2025-09-06 23:30:45 +02:00
parent 9cf51a1534
commit f4a9592f26
6 changed files with 133 additions and 36 deletions

View File

@@ -572,6 +572,8 @@ lex :: (result : *Compile_Result) {
lexer : Lexer;
lexer.result = result;
lexer.result.tokens.allocator = result.allocator;
array_reserve(*lexer.result.tokens, 1024 * 1024);
init_lexer_from_string(*lexer, result.file.source);
lexer.path = result.file.path;