Describe the bug
In a grammar where one terminal consists of several other concatenated terminals, this is somehow not counted as a "use" of those recursive terminals. This leads to spurious Unused terminals: warnings
To Reproduce
Install Lark and run the following code:
Describe the bug In a grammar where one terminal consists of several other concatenated terminals, this is somehow not counted as a "use" of those recursive terminals. This leads to spurious
Unused terminals:
warningsTo Reproduce Install Lark and run the following code:
Expected behavior It correctly parses the identifiers and prints it to the console:
Actual behavior It correctly parses the identifiers and prints it to the console AND complains about the terminals being unused:
Additional notes It does not seem to matter whether
IDENT_LETTER
orDECIMAL_DIGIT
begin with an underscore or not. This may or may not contradict what https://raw.githubusercontent.com/lark-parser/lark/master/docs/_static/lark_cheatsheet.pdf says about terminals being "filtered out".