Skip to content

bad precedence for bit ops #196

@mloc

Description

@mloc

In DM, 1 | 6 & 2 is parsed as 1 | (6 & 2) and returns 3.
Instead, we parse it as (1 | 6) & 2, as all bit ops are treated as having the same precedence.
According to ref, precedence should be & > ^ > |

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions