eval::file
eval/src/file.mo
pub def Eval.run_file (file_path : String) (verbose : Bool) : IO (Result String String)Evaluate a source file's root main; Ok is the text to print
(warnings included), Err is the staged failure with its diagnostics.
Byte-for-byte the vocabulary lang::eval_run printed before the
evaluator moved here, including the warning prefix on failures.
pub def Eval.run_file_limited (fuel : I64) (depth_limit : I64) (file_path : String) (verbose : Bool) : IO (Result String String)run_file with an explicit step budget and nesting cap; either -1
keeps that limit off (the CLI's own semantics). Weaver's monad_eval
passes finite ones: a non-terminating snippet then reports the evaluator's
out of fuel as a tool error instead of pinning the turn fiber forever,
and a deep one reports recursion too deep instead of exhausting the
native stack.
pub def Eval.lower_file_for_bench (file_path : String) (root : String) (verbose : Bool)
: IO (Result String EvalBenchProgram)Load file_path and lower root without evaluating it, so a benchmark
can time lang::core_eval.eval with the load/typecheck/elaborate/lower
setup amortized out. Native only: this module is the filesystem entry
and is never reachable from the wasm engine.