Closed dnbln closed 4 years ago
Turns out when I was converting the lalrpop grammar to Grammar-Kit, I didn't properly account for this section of the grammar. This is related to #2, because lalrpop invokes a second parser in the first parser, to parse a "pattern":
It looks like this "pattern" is just a subset of Rust grammar, so we can probably inject Rust here like we do for the action code, and just replace the odd <Type>
notation with whatever it's supposed to be.
Parsing now completes successfully as of https://github.com/Mcat12/intellij-lalrpop/commit/7095024cd6a1ed1280bd4c8667e175dd0f5e1b45.
I have some code that looks like this:
The error that I get is at the
lexer::Tok::AddEq(<TokLoc>)
sayingLALRPOP.COMMA or LALRPOP.RBRACE expected, got 'lexer::Tok::AddEq(<T...'