erikerlandson/classad_pl — Issue #1: interface
Author: erikerlandson
Created: 2012-02-23 18:01:45+00:00
State: open
Labels: notes

classad_eval

% evaluate raw (internal) expression tree
eval(+Expression, +Context, -Result)

% include [other = OtherContext] (at scope inside Context)
eval(+Expression, +Context, +OtherContext, -Result)

% or maybe:
eval(+Expression, +Context, [var1 = Context1, var2 = Context2], -Result)

% parse NativeString into internal expression tree, evaluate to Result
eval_native(+NativeString, +Context, -Result)
eval_native(+NativeString, +Context, +OtherContext, -Result)