diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-20 21:36:56 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-20 21:36:56 +0200 |
| commit | f444b25bc2f7f92ab0bbd5411e7dd89f49fa25d2 (patch) | |
| tree | 0bb7a6439b456f0695641ce0cc9c2eb8739a2c73 /cmd | |
| parent | af8d680f3a1271fe6f57c5bba7675e5f06e0d2fd (diff) | |
internal/rpn: add rpn.go with RPN parser and evaluator
- ParseAndEvaluate: parses and evaluates RPN expressions
- Tokenization: standard RPN with special assignment handling
- Variable assignment format: 'name = value'
- Standard RPN operations: +, -, *, /, ^, %
- Stack operations: dup, swap, pop, show
- Variable management: vars, clear
- Variable reuse: push stored value onto stack
- 35 comprehensive test functions
- All tests pass, go vet passes
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
