Closed dnbln closed 3 years ago
I tried importing gluon's lalrpop grammar and found out that:
'_
{Id}
_
where
forall
for
grammar_where_clause
- forall ::= FOR LESSTHAN <<comma type_param>> GREATERTHAN | + forall ::= (FOR LESSTHAN <<comma type_param>> GREATERTHAN)?
Or
- forall ::= FOR LESSTHAN <<comma type_param>> GREATERTHAN | + forall ::= FOR LESSTHAN <<comma type_param>> GREATERTHAN | ()
Thanks! If you want, feel free to open an PR, otherwise I'll work on this when I get a chance.
Edit: looks like you're working on this in #9.
I tried importing gluon's lalrpop grammar and found out that:
'_
is not recognized as a lifetime ({Id}
doesn't match_
)where
element, even though it is defined, it is never matched in the lexer.forall
rule doesn't match nothing(it always expects afor
in thegrammar_where_clause
rule). This can be fixed with:Or