Introduce closure AST node

The `Closure` struct has been moved from `ast/vm.rs` to a new module
`ast/closure.rs`. This improves the organization of the AST nodes. The
`Closure` struct represents a compiled function body along with its
captured upvalues, which is a key feature for Myc Script.
This commit is contained in:
2026-03-22 19:37:04 +01:00
parent 37d7ed3e75
commit 6c37b0c64f
7 changed files with 68 additions and 53 deletions
+1
View File
@@ -1,3 +1,4 @@
pub mod closure;
pub mod compiler;
pub mod diagnostics;
pub mod environment;