Skip to content

fix(parser) fix precedence for implicit mult with constants and () - #9

Merged
aurelleb merged 1 commit into
vicinaehq:mainfrom
vMohammad24:fix/parser-mult
Sep 18, 2026
Merged

aurelleb merged 1 commit into
vicinaehq:mainfrom
vMohammad24:fix/parser-mult

Conversation

@vMohammad24

Copy link
Copy Markdown
Contributor

gate juxtaposition at *'s own precedence and parse its operand at exponent level and add corpus tests for it

examples on what this fixes are in the corpus tests, including:

2(3)^2 = 18 (was 36)

5^3-2(25)-13(5)-10 = 0 (was 15,300)

(cherry picked from commit 5d940207b80796d6fd34d159e114dfd36d65992c)
@aurelleb
aurelleb merged commit aaf15f8 into vicinaehq:main Sep 18, 2026
8 checks passed
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.

2 participants