summaryrefslogtreecommitdiff
path: root/internal/repl/repl.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 22:15:30 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 22:15:30 +0200
commit0ed3c78acd270c0bd8dec73dedb82f3edc02024f (patch)
tree84bc0dbd3d82e9e999d0c8879be103eccb18dcad /internal/repl/repl.go
parentb433b4cbd250008020c8d4162e45dd0571d7a6ca (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