summaryrefslogtreecommitdiff
path: root/internal/rpn/operations_interfaces.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 14:08:41 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 14:08:41 +0300
commitf02d0996bcaee49a4226ba678788e7550b06be29 (patch)
treef9c8eecdb36b95d4e28fc00c7aa1d913ebcd2387 /internal/rpn/operations_interfaces.go
parentf3a0760739049a42be7b446eab1d4d085ebe2702 (diff)
refactor(rpn): extract 'd' operator into Delete method (pj)
Move the inline logic for the 'd' (delete variable) operator into a proper Operations.Delete method, following the same registration pattern as all other operators. Adds Delete to the StackOperator interface.
Diffstat (limited to 'internal/rpn/operations_interfaces.go')
-rw-r--r--internal/rpn/operations_interfaces.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/rpn/operations_interfaces.go b/internal/rpn/operations_interfaces.go
index cc60db2..39edcad 100644
--- a/internal/rpn/operations_interfaces.go
+++ b/internal/rpn/operations_interfaces.go
@@ -53,6 +53,7 @@ type StackOperator interface {
Dup(stack *Stack) error
Swap(stack *Stack) error
Pop(stack *Stack) error
+ Delete(stack *Stack) error
Show(stack *Stack) (string, error)
}