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>;
So I was just writing more lalrpop code:
On a side note, adding the type to
PackageKw
: