diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-11 22:39:02 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-11 22:39:02 +0300 |
| commit | 911f6e70c15b1cdb754baf768054effca284733b (patch) | |
| tree | cd8cf65c45690860ee8969d6cfe1816e1c94b523 /integrationtests/cli_test.go | |
| parent | fc8b403cc183fcc38a6154005744588c30913679 (diff) | |
refactor: reduce RPN operation error handling boilerplate with helper functions
- Added helper functions: popStack, popTwo, toFloat64, ensureStackLength, buildError
- Refactored arithmetic operators (Add, Subtract, Multiply, Divide, Power, Modulo)
- Refactored log operators (Log2, Log10, Ln)
- Refactored boolean operators (GT, LT, GTE, LTE, EQ, NEQ)
- Refactored stack operators (Dup, Swap, Pop, Show)
- Refactored variable operators (AssignVariable, UseVariable, AssignLeft, AssignRight)
Diffstat (limited to 'integrationtests/cli_test.go')
0 files changed, 0 insertions, 0 deletions
