abacus v0.4.0 Abacus.Eval

Function definitions on how to evaluate a syntax tree.

You usually don’t need to call eval/2 yourself, use Abacus.eval/2 instead.

Summary

Functions

eval(number, scope)

Specs

eval(expr :: tuple | number, scope :: map) ::
  {:ok, result :: number} |
  {:ok, boolean} |
  {:ok, nil} |
  {:error, term}