API Reference RulEx v1.0.0

Modules

RulEx is a rules engine and simplified expressions language for evaluating a set of conditions against a set of facts, yielding true or false on whether the provided facts adhere to the set of conditions given.

This is the main behaviour describing RulEx and all the available callbacks and functions needed to fully implement rules evaluation.

Protocol controlling providing facts to RulEx evaluation functions.

An error risen if the given encoded RulEx expression fails to be decoded for any reason when using the bang variant functions of the RulEx.Encoding callbacks.

An error risen if the given RulEx expression fails to be encoded for any reason when using the bang variant functions of the RulEx.Encoding callbacks.

This behaviour defines how to translate RulEx expressions into any encoding formats your application may want/need, e.g. converting them into JSON values.

An error risen if the given RulEx expression fails to evaluate for any reason when using the bang variant functions of the RulEx.Behaviour callbacks.

Provide helper guards for use with RulEx.