Skip to content

fix: Compound assignments for rvalued variables - #245

Open
paxcut wants to merge 2 commits into
masterfrom
fiv/rvalue_compund_assignments
Open

fix: Compound assignments for rvalued variables#245
paxcut wants to merge 2 commits into
masterfrom
fiv/rvalue_compund_assignments

Conversation

@paxcut

@paxcut paxcut commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Even though the assignment operator is now supported for rvalued variables compound assignment still resulted on parser errors. This PR aims at adding full support of all compound assignments to rvalued variables. The previous implementation of assignment for rvalues was left intact and a new set of functions were added to integrate rvalues with the existing lvalues compound assignment support.

paxcut added 2 commits August 28, 2026 17:33
Even though the assignment operator is now supported for rvalued variables compound assignment still resulted on parser errors. This PR aims at adding full support of all compound assignments to rvalued variables. The previous implementation of assignment for rvalues was left intact and a new set of functions were added to integrate rvalues with the existing lvalues compound assignment support.
parent and this keywords were not being detected even when they can be used. parent can be assigned to in function statements too. Added a system to select which keywords can be used during detection to generate compiler errors when possible. Many thanks to @majocane in discord for reporting the missing operations and help debugging and figuring thinks out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant