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 equality operator precedence #13

Open
sam701 opened this issue Oct 26, 2020 · 1 comment
Open

Fix equality operator precedence #13

sam701 opened this issue Oct 26, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@sam701
Copy link
Owner

sam701 commented Oct 26, 2020

Make these expressions parsable:

3 > 2 == true
if true then 3 else 2 == 3 // ambiguous, see comment below
@sam701 sam701 added the bug Something isn't working label Oct 26, 2020
@sam701
Copy link
Owner Author

sam701 commented Oct 26, 2020

The expression if true then 3 else 2 == 3 is ambiguous depending on associativity. It can be seen as (if true then 3 else 2) == 3 or if true then 3 else (2 == 3). This case won't be fixed.

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

No branches or pull requests

1 participant