Community
Participate
Working Groups
I wanted to generate an editor for a larger grammar. Unfortunately this causes Internal<DSL>Lexer#specialStateTransition(int,IntStream) to be to large for the java compiler. I got the following error message: The code of method specialStateTransition(int, IntStream) is exceeding the 65535 bytes limit. Maybe it is possible to extract each case into a seperate method?
Please try to to turn on classSplitting for all the antlr fragments in your mwe file. fragment = parser.antlr.XtextAntlrGeneratorFragment { options = { classSplitting = true } }
I've give it a try, but the issue persists.
If have solved the issue for now by adapting the antlr java generator. See the pull-request: https://github.com/antlr/antlr3/pull/123 Is it possible to temporarily change the antlr dependency for xtext such that I can insert my adapted antlr lib?
I have changed the antlr-3.5 jar which is used as ANTLR runtime configured via the eclipse preferences -> ANTLR -> Builder. However XText behaves like before as if this configuration does not have any impact on XText. Is this the case? Where can I configure the ANTLR Runtime for XText?
(In reply to comment #4) > I have changed the antlr-3.5 jar which is used as ANTLR runtime configured > via the eclipse preferences -> ANTLR -> Builder. > However XText behaves like before as if this configuration does not have any > impact on XText. Is this the case? Where can I configure the ANTLR Runtime > for XText? Xtext doesn't use the antlr-plug-in for eclipse at all. If you want to have a different ANTLR you need to put it into your target platform.