Skip to main content

Module codegen

Module codegen 

Source
Expand description

Code generation for discovered EML expressions (Rust, Python/NumPy).

LaTeX rendering is delegated to oxieml (tree.lower().simplify().to_latex()); this module emits executable source in other targets directly from the EML AST.

Functionsยง

numpy_code
Generate a NumPy-compatible Python lambda body for the tree.
rust_code
Generate a standalone Rust function f(x0, x1, ...) -> f64 for the tree.
sympy_code
Generate a SymPy expression string for the tree.