Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.
This repository was archived by the owner on May 27, 2023. It is now read-only.

Bracket insertion is messy / inefficient #6

@aantthony

Description

@aantthony

In order to quickly fix compilation of x - (y - z), I made it always insert the parentheses if the operator is not associative or the precedence requires it.

Each operator has an associative property which signifies the direction that it is grouped in, but it only needs to insert the parentheses if the precedence requires it, or the associative property is non-zero and points in the other direction.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions