# Predicator
[predicator](https://hexdocs.pm/predicator) is a predicate evaluator for compiled rules from the [predicator](https://github.com/riddler/predicator/tree/master/impl/rb) ruby gem
### Installation
The package can be installed by:
1. Adding to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:predicator, "~> 0.9"}]
end
```
or if you want to use the ecto types for predicator you can add the predicator_ecto lib.
```elixir
def deps do
[
{:predicator, "~> 0.9"},
{:predicator_ecto, ">= 0.0.0"},
]
end
```
### Using
_Currently has working Evaluator for Predicator instructions & limited lexing and parsing_
### TODO:
- [ ] Lex and parse parens
- [ ] Lex and parse `date`, `duration`, `ago`, `fromnow`