From 3767425a2f44e0548220502d6e25e795908385a4 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 31 May 2025 00:00:10 +0200 Subject: Bootstrap: Use arena for tokenizer --- src/bootstrap/main.src | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bootstrap/main.src') diff --git a/src/bootstrap/main.src b/src/bootstrap/main.src index 17632ce..192869b 100644 --- a/src/bootstrap/main.src +++ b/src/bootstrap/main.src @@ -1,4 +1,5 @@ import "!stdlib.src"; +import "!mem.src"; import "tokenizer.src"; @@ -12,8 +13,12 @@ let main = (argc: i64, argv: **i8) => i64 { println("%s", filename); - tokenizer_init(filename); + let alloc = arena_init(9999999999); + + tokenizer_init(alloc, filename); tokenizer_deinit(); + arena_free(alloc); + return 0; }; -- cgit 1.4.1