hashmaps, enforce main function type

This commit is contained in:
2026-03-20 19:27:51 +01:00
parent 3efbb3ecd1
commit 86de997be3
5 changed files with 109 additions and 8 deletions

View File

@@ -732,7 +732,6 @@ _builtin_environ:
Expr::New(struct_name) => {
let struct_fields = &self.symbol_table.structs[&struct_name.lexeme];
// TODO: panic on mem.alloc error
let memory_size = struct_fields.len() * 8;
emit!(&mut self.output, " mov rdi, {}", memory_size);
emit!(&mut self.output, " call mem.alloc");