Crate skillet

Crate skillet 

Source

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§

ast
concurrent_registry
custom
error
js_plugin
lexer
memory_pool
parser
runtime
traits
types

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