tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
624 stars 106 forks source link

Error "grammar ANTLRv4LexBasic has no non-fragment rules" generated only by TS target #502

Closed mike-lischke closed 3 years ago

mike-lischke commented 3 years ago

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 3 years ago

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.