Skip to content

Implement correct precedences for binary operators #2

Description

@christoph-dfinity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions