Error "grammar ANTLRv4LexBasic has no non-fragment rules" generated only by TS target
mike-lischke opened this issue · comments
Mike Lischke commented
When generating parser + lexer for the ANTLR4 language (using the grammar files from the v4 grammar directory) with antlr4-typescript-4.9.0-SNAPSHOT-complete.jar
I get the error
'error(99): grammars/ANTLRv4LexBasic.g4::: grammar ANTLRv4LexBasic has no non-fragment rules'
The previous TS jar I used did not produce this error, neither does antlr-4.9.2-complete.jar
. So this must be the result of a recent change in the TS target. Any idea @sharwell, @BurtHarris?
Mike Lischke commented
I'm sorry, it's exactly the other way around. The TS target does not show the error, but instead antlr-4.9.2-complete.jar
does.