Skip to content

Evaluator

opulse.expression.evaluator

Evaluate expression trees and collect the statistics written to datasets.

Evaluation follows docs/reference/semantics.md section 6: strict, bottom-up, left to right; values are ints or NAN. The expansion degree is the sum of every application's base_ops (a base operation counts 1).

Step dataclass

One operator application in evaluation order (innermost first).

Evaluator

Evaluates trees with a runtime (anything with evaluate(op)).

structure_stats

structure_stats(
    node: Node, registry: OperatorRegistry
) -> dict

Statistics that do not need evaluation.