feat: less env clone

This commit is contained in:
2025-05-22 19:21:14 +08:00
parent dcd22ad1f3
commit c898b577b0
5 changed files with 117 additions and 75 deletions

View File

@@ -71,10 +71,14 @@ pub enum OpCode {
SelectDynamic,
/// [ .. set sym default ] select `sym` from `set` or `default`
SelectDynamicOrDefault,
/// enter the environment of the attribute set at TOS
EnterEnv,
/// exit current envrironment
LeaveEnv,
/// enter the let environment of the attribute set at TOS
EnterLetEnv,
/// exit current let envrironment
LeaveLetEnv,
/// enter the with environment of the attribute set at TOS
EnterWithEnv,
/// exit current with envrironment
LeaveWithEnv,
/// illegal operation, used as termporary placeholder
Illegal,