A lightweight expression language designed for the evaluation of expressions in various contexts.
Zen Expression is a versatile single-threaded expression language designed for simplicity high-performance. It's primarily used for evaluating and processing JSON data offers key components that empower developers in creating responsive and non-blocking I/O applications Out of the box, it comes with amazing benefits:
- 🚀 Blazingly fast - Perform millions of evaluations per second
- 🧠 Intuitive syntax - Minimalistic and expressive syntax
- 💼 Portable - Can be compiled for all standard architectures including WASM
For a full list of language references, visit documentation.
Example
Evaluate expression using isolate:
use evaluate_expression;
use Variable;
use dec;
use json;
High Performance
When evaluating a lot of expressions at once, you can use Isolate directly. Under the hood, Isolate will re-use allocated memory from previous evaluations, drastically improving performance.
use Isolate;
use Variable;
use dec;
use json;
Feature flags
| Name | Description | Default? |
|---|---|---|
regex-deprecated |
Uses standard regex crate |
Yes |
regex-lite |
Opts for usage of lightweight regex-lite crate. Useful for reducing build size, especially in WASM. |
No |