Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser: fix operator precedence #2096

Merged
merged 1 commit into from
Dec 27, 2021
Merged

parser: fix operator precedence #2096

merged 1 commit into from
Dec 27, 2021

Commits on Dec 21, 2021

  1. parser: fix operator precedence

    `1 + 2 *3` is currently evaluated as `(1+2)*3` while it should be `1 +
    (2*3)`. This is because the additive and multiplicative operators we're
    mixed in the same rule.
    
    Tests are only implemented in runtime right now as doing this in the
    parser is a bit tedious to write and it doesn't actually guaranteed the
    correct output.
    
    Fixes bpftrace#2095
    fbs committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    1b8b64e View commit details
    Browse the repository at this point in the history