Skip to content

[BUG] Fails to parse multiple binary + unary operators #33

@Jeremy924

Description

@Jeremy924

Describe the bug
When there is a binary operator (such as ==) directly followed by a unary operator (such as !), the code panics saying that it cannot find the ==! operator.

Raven Code To Reproduce

import stdio;

fn main() {
    let t = true;
    let f = false;
    if t == !f {
        printf("Passed!");
    } else {
        printf("Failed!");
    }
}

Error Output or Unexpected Behavior

thread 'main' panicked at language\data\src\lib.rs:178:13:
Missing file: Failed to find operation {}==!{} with [LoadVariable("t"), LoadVariable("f")]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Medium

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions