summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-20 22:22:34 +0200
committerPaul Buetow <paul@buetow.org>2026-03-20 22:22:34 +0200
commit8fb02e7bfc0669fea2adb5d38af2a8a12a1eb6b5 (patch)
tree5ac5faf8f9e660d8e76e25806ab235ecb30bac01 /cmd
parent59d8038a2188319640863ecad33ea855b2cf3c0e (diff)
feat: Add hyper operator methods for stack operations
- Added HyperAdd, HyperMultiply, HyperSubtract, HyperDivide, HyperPower, HyperModulo - Each hyper operator pops all values from stack and applies left-associative operation - Updated token evaluation to recognize [op] pattern (e.g., [+], [-], [*], [/], [^], [%]) - Added comprehensive test cases for all hyper operators - Updated README.md with hyper operator documentation and fixed persistent RPN state notes Hyper operators allow operating on all stack values at once, while regular operators work on the top two values.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions