refactor: 顶层程序发射迁出 emit.rs 独立成 program 模块

This commit is contained in:
2026-09-15 22:27:29 +00:00
parent 4c9d3f2873
commit 423f075ddc
6 changed files with 550 additions and 531 deletions
+1 -1
View File
@@ -11,8 +11,8 @@ use oxide_ir::inst::Inst;
use oxide_ir::operand::LabelId;
use oxide_ir::IRFunction;
use crate::emit::{BUILTIN_GLOBALS, NON_WRITABLE_GLOBAL_BUILTINS};
use crate::emit_ctx::{LabelCtx, LabelScope, LoopEntry, LoopKind, ScopeCtx};
use crate::program::{BUILTIN_GLOBALS, NON_WRITABLE_GLOBAL_BUILTINS};
use crate::symbol_table::{ScopeKind, SymbolTable};
use oxide_parser::VariableDeclarationKind;