Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

predicator/predicator_elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Predicator

predicator_elixir is a predicate evaluator for compiled rules from the predicator ruby gem

Installation

The package can be installed by:

  1. Adding to your list of dependencies in mix.exs:
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.

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