Expression language parser and evaluator for cctr constraints.
Supports:
- Numbers:
42,-3.14,0.5 - Strings:
"hello","with \"escapes\"" - Booleans:
true,false - Arrays:
[1, 2, 3],["a", "b"] - Arithmetic:
+,-,*,/,^ - Comparison:
==,!=,<,<=,>,>= - Logical:
and,or,not - String ops:
contains,startswith,endswith,matches - Membership:
in - Functions:
len(s)
Example
use ;
use HashMap;
let mut vars = new;
vars.insert;
assert!;