Skip to content

Plugin doesn't support cascading precedence annotations #57

@TheOnlyTails

Description

@TheOnlyTails

LALRPOP recently added support for cascading precedence annotations, which apply to all alternatives below them until the next annotation/end of the rule, as so:

Expr: Expr = {
    #[precedence(level="1")]
    <Number> => ...
    "-" <Expr> => ...

    #[precedence(level="2", assoc="left")]
    <left: Expr> "*" <right: Expr> => ...,
    <left: Expr> "/" <right: Expr> => ..., 

    #[precedence(level="3", assoc="left")]
    <left: Expr> "+" <right: Expr> => ...
    <left: Expr> "-" <right: Expr> => ...,
};

However, this plugin doesn't support this, and requires an annotation on every alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions