Skip to content

Fix operator precedence #2

@JoaaoVerona

Description

@JoaaoVerona

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions