Rule
A rule engine written in rust. There's also a python fork.
The rule is a json string or rust object of a list expression.
The expression is like [op, arg0, arg1, ..., argn]
, the op
is the operator,
and arg0..n
is the arguments for the operator. Any argument can be another expression.
For writing convenience, the first argument will be tried to resolve as the context parameter.
Or, you can just use the special var
operator to indicate the context parameter.
Usage
use ;
ToDos
- add more built-in
Op
s - support register custom
Op
s - support
rule!
macro