pub fn compile(source: &str, fns: &[Box<dyn Function>]) -> ResultExpand description
Compiles the given source code into the final Program.
This function initializes an external environment and default compilation configuration before invoking the compilation process.
§Arguments
source- The source code to be compiled.fns- A list of function definitions available during compilation.
§Returns
A Result containing the compiled program or a diagnostic error.
§Errors
On compilation error, a list of diagnostics is returned.