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 operator precedence #2

Open
JoaaoVerona opened this issue May 14, 2016 · 0 comments
Open

Fix operator precedence #2

JoaaoVerona opened this issue May 14, 2016 · 0 comments
Assignees

Comments

@JoaaoVerona
Copy link
Owner

Right now, the parser can't really understand the precedence between binary operators.
For example, the sentence println(i == 5 && j == 3) is generating a compile error, because the AND operator (&&) is trying to associate the resultor 'i == 5' with the variable 'j', and not with the resultor 'j == 3'. However, the sentence println(i == 5 && !j) is valid, because there is a unary operator NOT (!) instead of a binary operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant