predicator_elixir is a predicate evaluator for compiled rules from the predicator ruby gem
The package can be installed by:
- Adding to your list of dependencies in
mix.exs:
def deps do
[{:predicator, "~> 0.9"}]
endor if you want to use the ecto types for predicator you can add the predicator_ecto lib.
def deps do
[
{:predicator, "~> 0.9"},
{:predicator_ecto, ">= 0.0.0"},
]
endCurrently has working Evaluator for Predicator instructions & limited lexing and parsing
- Lex and parse parens
- Lex and parse
date,duration,ago,fromnow