Re-exports§
pub use ast::Expr;pub use custom::CustomFunction;pub use custom::FunctionRegistry;pub use error::Error;pub use js_plugin::JavaScriptFunction;pub use js_plugin::JSPluginLoader;pub use types::Value;
Modules§
Functions§
- evaluate
- Evaluate an arithmetic expression to f64.
- evaluate_
with - Evaluate with a map of numeric variables and built-in functions.
- evaluate_
with_ assignments - Evaluate with assignments and sequences - handles complex expressions with variable assignments
- evaluate_
with_ assignments_ and_ context - Evaluate with assignments and sequences, returning both result and variable context
- evaluate_
with_ custom - Evaluate with custom functions support
- evaluate_
with_ json - Evaluate with variables provided as JSON string. JSON format: {“var1”: “value1”, “var2”: 42, “var3”: true} Supports flat JSON structure with automatic type conversion. JSON keys with special characters are sanitized to valid variable names.
- evaluate_
with_ json_ custom - Evaluate with JSON and custom functions support JSON keys with special characters are sanitized to valid variable names.
- has_
custom_ function - Check if a custom function is registered
- json_
to_ value - Convert serde_json::Value to skillet::Value with type inference
- list_
custom_ functions - List all registered custom functions
- parse
- Parse an arithmetic expression (optional leading ‘=’) into an AST.
- register_
function - Register a custom function globally
- unregister_
function - Unregister a custom function by name