fix: update main and tests for new Reducer API

Update call sites to match the new Reducer interface where the expression
is passed to the constructor and Reduce() takes no arguments.
This commit is contained in:
2026-01-16 18:56:03 -05:00
parent bcc0331149
commit aeffe64804
4 changed files with 23 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ type Reducer interface {
// Emits StartEvent before reduction, StepEvent after each step, and
// StopEvent after completion.
// Returns the final reduced expression.
Reduce(e expr.Expression) expr.Expression
Reduce()
// Expression returns the current expression state.
Expression() expr.Expression