leftibot ffb8c82818 Fix #473: Allow assignment expressions in return statements
The Return() parser function called Operator() to parse the return value,
which only handles arithmetic/logical operators but not assignments. Changed
it to call Equation(), which wraps Operator() and adds assignment parsing.
This is consistent with how If, For, and function argument parsing already
work. Enables `return foo = 5`, `return x += 1`, etc.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 16:44:54 -06:00
..
chaiscript Fix #473: Allow assignment expressions in return statements 2026-04-11 16:44:54 -06:00