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

fix(compiler): Report binop locations properly #1271

Merged
merged 1 commit into from
May 29, 2022
Merged

Conversation

ospencer
Copy link
Member

This problem is supposed to be solved by Menhir's $sloc, but that only works in the current rule. We'd essentially need to inline all of the right side of binops to get the location reporting right, but this is much simpler.

Closes #1129

@ospencer ospencer requested a review from a team May 28, 2022 01:46
@ospencer ospencer self-assigned this May 28, 2022
Copy link
Member

@peblair peblair left a comment

Choose a reason for hiding this comment

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

Nice approach 👍

@ospencer ospencer merged commit 4b9dd9c into main May 29, 2022
@ospencer ospencer deleted the oscar/fix-binop-locs branch May 29, 2022 15:20
@github-actions github-actions bot mentioned this pull request May 31, 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.

Locations of rational literals are reported incorrectly
4 participants