Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Error: The code of method ruleElement() is exceeding the 65535 bytes limit(Antlr class to large)
Error: The code of method ruleElement() is exceeding the 65535 bytes limit [message #703574] Wed, 27 July 2011 17:57 Go to next message
msnels is currently offline msnelsFriend
Messages: 2
Registered: July 2011
Junior Member
After running the workflow the code of the function ruleEleemt in the class InternalXXXParser becomes to large. I had the same problem at first with the mTokens in the InternalLexer but the fragment below solved that problem. Is there a fix for the RuleElement as well?

			// The antlr parser generator fragment.
			fragment = parser.antlr.XtextAntlrGeneratorFragment {
			  options = {
			  		classSplitting = true
					backtrack = true
				}
			}


and

			// generates a more lightweight Antlr parser and lexer tailored for content assist  
			fragment = parser.antlr.XtextAntlrUiGeneratorFragment {
			  options = {
			  		classSplitting = true
					backtrack = true
				}
			}


Regards,
Maarten Snels
Re: Error: The code of method ruleElement() is exceeding the 65535 bytes limit [message #704096 is a reply to message #703574] Thu, 28 July 2011 09:21 Go to previous message
msnels is currently offline msnelsFriend
Messages: 2
Registered: July 2011
Junior Member
Hi,

I stept up to xtext 2.0 and the problem is gone. Now i have to adapt my projects.

Regards,
Maarten
Previous Topic:Leveraging importURI mechanism to include imported objects in model
Next Topic:Scoping & "Cyclic resolution of lazy links" error
Goto Forum:
  


Current Time: Sat Apr 10 13:02:41 GMT 2021

Powered by FUDForum. Page generated in 0.01676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top