# Belp

[![Build Status](](
[![Coverage Status](](

A simple *B*oolean *E*xpression *L*exer and *P*arser written in Elixir.

## Installation

The package can be installed by adding `belp` to your list of dependencies in

def deps do
    {:belp, "~> 0.1"}

## Usage

iex> Belp.eval("foo and bar", foo: true, bar: false)
{:ok, true}

iex> Belp.eval!(
...>   "(foo or bar) and not baz",
...>   %{"foo" => false, "bar" => true, "baz" => true}
...> )

iex> Belp.variables("foo or bar")
{:ok, ["foo", "bar"]}

iex> Belp.variables!("foo or bar")
["foo", "bar"]

See [HexDocs]( for the full API.