Skip to content

More weird bugs in weird grammar #54

@dnbln

Description

@dnbln

So I was just writing more lalrpop code:

Kw<V, T>: T = {
    <left: @L> V <right: @R> => (<>).into(), // the idea is to cast from a range to the proper keyword type, assuming `T: From<(usize, usize)>`
}

PackageKw = Kw<"package", PackageKw>; // type resolution by lalrpop says it references itself, but intellij-lalrpop doesn't

On a side note, adding the type to PackageKw:

Kw<V, T>: T = {
    <left: @L> V <right: @R> => (<>).into(),
}

PackageKw: PackageKw = Kw<"package", PackageKw>;

image

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