diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-26 09:42:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-26 09:42:32 +0200 |
| commit | f3cf44b961ea3baef4e8150a6ce88add84970212 (patch) | |
| tree | 4e0be3d5a959d03ad5efe9f9ac1d680733267f64 /cmd | |
| parent | 839ea8d3a60a2799e3ce327e5db83e7d95a8bb39 (diff) | |
refactor: Extract RPN assignment handlers to fix SRP violation
Created specialized handlers for each assignment operator type:
- handleAssignRight (for := operator)
- handleAssignLeft (for =: operator)
- handleStandardAssign (for = operator)
The assignmentHandler uses the Strategy pattern to delegate to specialized
handlers based on the assignment operator found in the input. Each handler
has a single, well-defined responsibility, addressing the SRP violation
in the previous monolithic handleAssignment method.
All tests pass and code quality is maintained.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
