At the moment all binary operators associate to the left with the same precedence. This means 1 + 2 * 3 incorrectly parses as (1 + 2) * 3.
Because this doesn't matter for syntax highlighting or indentation I decided to not bother with implementing the correct precedences.
When we do this, we need to keep a close eye on the state space and parser size. If it increases significantly it might not be worth it.
At the moment all binary operators associate to the left with the same precedence. This means
1 + 2 * 3incorrectly parses as(1 + 2) * 3.Because this doesn't matter for syntax highlighting or indentation I decided to not bother with implementing the correct precedences.
When we do this, we need to keep a close eye on the state space and parser size. If it increases significantly it might not be worth it.