Grammar-Kit icon indicating copy to clipboard operation
Grammar-Kit copied to clipboard

Fix false positive "Unresolved BNF References" for methods from `GeneratedParserUtilBase` if `parserUtilClass` does not inherit it

Open VladRassokhin opened this issue 2 years ago • 1 comments
trafficstars

VladRassokhin avatar Sep 21 '23 09:09 VladRassokhin

Let's process parser imports correctly. The patch is rather a hack to support that particular single case.

General fix:

Get all parser imports (no semicolons, btw), and cycle through static fqn.* and fqn.method entries.

Funny, but quoted idents with dots are not properly generated, so we can skip fqn imports. Or they too can be supported, because <<<GeneratedParserUtilBase.eof>>> could work 😄 .

That's it

gregsh avatar Sep 21 '23 09:09 gregsh