FeelEx (feel_ex v0.1.0)

A friendly expression language helps users define decision logic without needing deep technical expertise. This language is based on the FEEL(Friendly Enough Expression Language). For more information regarding FEEL, please take a look at the official OMG specification at https://www.omg.org/dmn/.

Summary

Functions

Evaluates an expression.

Evaluates an expression against a context.

Functions

evaluate(expression)

Evaluates an expression.

Examples

iex> FeelEx.evaluate("if true then 2+2 else 3+3")
%FeelEx.Value{value: 4, type: :number}

evaluate(context, expression)

Evaluates an expression against a context.

Examples

iex> FeelEx.evaluate(%{a: true}, "if a then 2+2 else 3+3")
%FeelEx.Value{value: 4, type: :number}