Versions in this module Expand all Collapse all v0 v0.6.0 Oct 2, 2026 v0.5.0 Sep 14, 2026 Changes in this version + func Run(p *Program, env *Env) (any, error) + type BoundClosure struct + Decl *model.Closure + ID string + Slot int + type BoundVar struct + Const bool + Name string + Slot int + type Compiled struct + Calls []string + Closures []BoundClosure + Exprs map[string]model.Expr + Program *Program + Vars []BoundVar + func CompileExpr(e model.Expr, h *Helpers) (*Compiled, error) + type Env struct + Base map[string]any + Vars []any + type Helpers struct + Arith func(op string, a, b any) any + Array func(items ...model.ArrayItemValue) *model.Array + BitNot func(v any) any + Bitwise func(op string, a, b any) (any, error) + Cast func(typ string, v any) any + Compare func(op string, a, b any) bool + Concat func(a, b any) string + Index func(base, idx any) any + InstanceOf func(value, class any) bool + Negate func(v any) any + Pair func(key, val any) model.ArrayItemValue + PanicError func(recovered any) error + Slotted func(name string) bool + Truthy func(v any) bool + type Program struct + func (p *Program) NumSlots() int + func (p *Program) Slots() map[string]int