Skip to content

Conversation

@AlexandrosAlexiou
Copy link

Enables parenthesized expressions on left side of assignments.

Problem:
Could not parse: (obj.prop) = value
Failed with parse error on parenthesized left-hand side.

Changes:

  • Added parenthesized_directly_assignable_expression rule
  • Added to directly_assignable_expression choices

Example:
(obj.prop) = value (array[i]) = newValue (receiver?.field) = data

Matches ANTLR: parenthesizedDirectlyAssignableExpression

Tests: 111/111 pass

Enables parenthesized expressions on left side of assignments.

Problem:
Could not parse: (obj.prop) = value
Failed with parse error on parenthesized left-hand side.

Changes:
- Added parenthesized_directly_assignable_expression rule
- Added to directly_assignable_expression choices

Example:
  (obj.prop) = value
  (array[i]) = newValue
  (receiver?.field) = data

Matches ANTLR: parenthesizedDirectlyAssignableExpression

Tests: 111/111 pass
@github-actions github-actions bot added the grammar Related to the grammar label Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grammar Related to the grammar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant