intern identifiers

This commit is contained in:
2026-06-10 21:27:00 +02:00
parent d6e03b6f08
commit cdbe4fbc99
16 changed files with 497 additions and 182 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
package hir
import "../source"
import "../symbol"
import "../types"
import "core:mem"
@@ -29,7 +30,7 @@ Expr :: struct {
}
Local :: struct {
name: string,
name: symbol.Id,
type: types.Type,
mutable: bool,
parameter: bool,
@@ -53,7 +54,7 @@ Stmt :: struct {
}
Function :: struct {
name: string,
name: symbol.Id,
link_name: string,
c_abi: bool,
is_main: bool,
@@ -68,7 +69,7 @@ Function :: struct {
}
Global :: struct {
name: string,
name: symbol.Id,
type: types.Type,
expr: int,
static_value: i64,