Skip to content

WIP: Fix mandatory double parentheses for unary operators like abs - #435

Draft
MarkBeB wants to merge 1 commit into
masterfrom
fix/unary-operator-brackets
Draft

WIP: Fix mandatory double parentheses for unary operators like abs#435
MarkBeB wants to merge 1 commit into
masterfrom
fix/unary-operator-brackets

Conversation

@MarkBeB

@MarkBeB MarkBeB commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes a bug in the GIPSL grammar where unary operators, like abs(_), force the use of redundant double parentheses around expressions (e.g., abs((A / 3)) + B instead of abs(A/3) + B ).

This should resolve #416 .

@MarkBeB
MarkBeB requested a review from maxkratz August 25, 2026 11:46
@MarkBeB MarkBeB added the bug Something isn't working label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GIPSL: use of abs([...]) with constant elements in function generates an error

1 participant