Skip to content

ObservableInterpretable

ObservableInterpretable performs per-evaluation state tracking around an interpretable.

new ObservableInterpretable(optionsValue): ObservableInterpretable

constructor initializes the wrapped interpretable and observers.

ObservableInterpretableOptions

ObservableInterpretable

eval(activation): Val

eval delegates to exec after promoting the activation to a frame.

Activation

Val

InterpretableV2.eval


exec(frame): Val

exec evaluates the wrapped interpretable and reports observer state before and after execution.

ExecutionFrame

Val

InterpretableV2.exec


id(): number

id returns the wrapped expression id.

number

InterpretableV2.id


observeEval(options): Val

observeEval evaluates an interpretable while exposing observer state updates.

Activation

(state) => void

Val


observeExec(options): Val

observeExec evaluates an interpretable while exposing observer state updates.

ExecutionFrame

(state) => void

Val