ObservableInterpretable
ObservableInterpretable performs per-evaluation state tracking around an interpretable.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ObservableInterpretable(
optionsValue):ObservableInterpretable
constructor initializes the wrapped interpretable and observers.
Parameters
Section titled “Parameters”optionsValue
Section titled “optionsValue”ObservableInterpretableOptions
Returns
Section titled “Returns”ObservableInterpretable
Methods
Section titled “Methods”eval()
Section titled “eval()”eval(
activation):Val
eval delegates to exec after promoting the activation to a frame.
Parameters
Section titled “Parameters”activation
Section titled “activation”Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”exec()
Section titled “exec()”exec(
frame):Val
exec evaluates the wrapped interpretable and reports observer state before and after execution.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”id():
number
id returns the wrapped expression id.
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”observeEval()
Section titled “observeEval()”observeEval(
options):Val
observeEval evaluates an interpretable while exposing observer state updates.
Parameters
Section titled “Parameters”options
Section titled “options”activation
Section titled “activation”observer
Section titled “observer”(state) => void
Returns
Section titled “Returns”Val
observeExec()
Section titled “observeExec()”observeExec(
options):Val
observeExec evaluates an interpretable while exposing observer state updates.
Parameters
Section titled “Parameters”options
Section titled “options”observer
Section titled “observer”(state) => void
Returns
Section titled “Returns”Val