pub fn compile(source: &str) -> Result<ExecutionPlan>Expand description
Convenience function to compile source in one call.
This creates a short-lived compiler and compiles the source.
For multiple compilations, prefer creating a Compiler instance directly.
Function definitions and calls must already be expanded; execution-facing
LogicProgram APIs own source normalization and import resolution.
§Example
ⓘ
use xlog_logic::compile::compile;
let plan = compile("edge(1, 2). reach(X, Y) :- edge(X, Y).")?;