Skip to main content

compile_expr

Function compile_expr 

Source
fn compile_expr(context: &Context<'_>, expr: &Expr) -> Result<NativeNode>
Expand description

Compiles expr into the node it denotes, recursing into whatever it is made of.

One rule per kind of expression and nothing per query: a math function is compiled by compiling its argument, so a query nests as deeply as it was written. A kind this compiler has no node for is refused with what was found, which is why the rejection is useful without a coverage list.