feat: Add tail call optimization

Introduce a TCO pass to the compiler and modify the VM to handle tail
calls.
This allows for deep recursion without stack overflow.
This commit is contained in:
Michael Schimmel
2026-02-17 23:10:55 +01:00
parent e6eaf70836
commit 98d3344912
7 changed files with 205 additions and 27 deletions
+2
View File
@@ -1,5 +1,7 @@
pub mod binder;
pub mod bound_nodes;
pub mod tco;
pub use binder::*;
pub use bound_nodes::*;
pub use tco::*;