pub fn expr_depth(expr: &TLExpr) -> usize
Compute the depth (height) of an expression tree.
Leaf nodes have depth 1; each internal node adds 1 to the maximum depth of its children.