This module provides an interpreter for Erlang expressions. The
expressions are in the abstract syntax as returned by
A binding structure.
As returned by
Further described in section
Further described in section
Adds binding
Returns the binding of
Returns the list of bindings contained in the binding structure.
Removes the binding of
Evaluates
Returns
Evaluates a list of expressions in parallel, using the same
initial bindings for each expression. Attempts are made to
merge the bindings returned from each evaluation. This
function is useful in
Returns
Evaluates
Returns
Returns an empty binding structure.
During evaluation of a function, no calls can be made to local
functions. An undefined function error would be
generated. However, the optional argument
This defines a local function handler that is called with:
Func(Name, Arguments)
This defines a local function handler that is called with:
Func(Name, Arguments, Bindings)
{value,Value,NewBindings}
There is no local function handler.
The optional argument
A functional object (fun) is called.
A built-in function is called.
A function is called using the
An operator
Exceptions are calls to
This defines a non-local function handler that is called with:
Func(FuncSpec, Arguments)
There is no non-local function handler.
For calls such as
The non-local function handler is however called with the
evaluated arguments of the call to
Calls to functions defined by evaluating fun expressions
The non-local function handler argument is probably not used as
frequently as the local function handler argument. A possible
use is to call
Undocumented functions in this module are not to be used.