Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An attempt to fix some parser priorities #260

Merged
merged 2 commits into from
May 18, 2022

Conversation

AltGr
Copy link
Contributor

@AltGr AltGr commented May 11, 2022

Closes #257

AltGr added 2 commits May 11, 2022 19:26
- makes sums and mults left-associative instead of right-associative (see the
  change in the tests!)
- uses higher priority for unary operators
@AltGr AltGr requested a review from denismerigoux May 12, 2022 13:02
@@ -11,5 +11,5 @@ scope A:
definition x equals 84.64866565265689623
definition y equals -. 4.36829778705320654980
definition z equals 654265429805103220650980650.5705405106540
definition a equals x /. y *. (x +. y) *. (x *. x *. z *. z)
definition a equals x /. (y *. (x +. y) *. (x *. x *. z *. z))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouahou that test was faulty

@denismerigoux denismerigoux merged commit 166355f into CatalaLang:master May 18, 2022
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.

Fix parser associativity bug
2 participants