Module Sce_core.Eval

Direct interpreters for resolved source-core terms. Supply a value environment, normally Ast.Unit for a whole program. Evaluation performs no type check and may diverge. Failed runtime operations, including missing fields, invalid import packages, and division by zero, raise Failure.

Big-step evaluation. Applications, merges, links, and primitive operands evaluate from left to right. Non-dependent merges preserve the ambient environment for both operands; sandboxed functors capture Ast.Unit.

One small step under the supplied environment; values are unchanged.

Repeated small-step evaluation until the value predicate holds.