Skip to main content

compile_with_config

Function compile_with_config 

Source
pub fn compile_with_config(
    expr: &TLExpr,
    max_depth: usize,
) -> Result<BytecodeProgram, CompileError>
Expand description

Compile a TLExpr to a BytecodeProgram with an explicit depth limit.

max_depth controls how deeply the compiler will recurse into nested sub-expressions before emitting CompileError::MaxDepthExceeded.