diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-23 22:15:30 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-23 22:15:30 +0200 |
| commit | 0ed3c78acd270c0bd8dec73dedb82f3edc02024f (patch) | |
| tree | 84bc0dbd3d82e9e999d0c8879be103eccb18dcad /internal/repl/repl.go | |
| parent | b433b4cbd250008020c8d4162e45dd0571d7a6ca (diff) | |
internal/rpn: fix assignment parsing for 'name value =' format
- Update handleAssignment to detect ' =' (space before equals) not just ' = ' (with trailing space)
- Allow assignment without trailing expression: 'x 5 =' instead of 'x 5 = expr'
- This fixes the REPL assignment syntax 'name value =' that was previously failing
The fix also enables command-line usage like 'perc calc x 5 =' to work correctly.
Diffstat (limited to 'internal/repl/repl.go')
0 files changed, 0 insertions, 0 deletions
