Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » compile error: InternalModelingDslParser: too much static variables
compile error: InternalModelingDslParser: too much static variables [message #1861410] Wed, 11 October 2023 16:27 Go to next message
Eclipse UserFriend
I am using xtext to build my DSL. With the passage of time, the Token in the grammar file has been more and more, and grammar is becoming more and more complex. Then the generated "InternalModelingDslParser.java" file comes withe compile error: too much static variables. It is probably because the file is too large, which currently is 22.51 MB.

Does there is a way to solve this? the version that I am using is 2.27.0.
Thanks so much.
Re: compile error: InternalModelingDslParser: too much static variables [message #1861411 is a reply to message #1861410] Wed, 11 October 2023 16:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi did you check if the class splitting options in the workflow help ?
Re: compile error: InternalModelingDslParser: too much static variables [message #1861419 is a reply to message #1861411] Thu, 12 October 2023 01:27 Go to previous message
Eclipse UserFriend
Thank you very much for your advice, I solved the problem by this:
language = StandardLanguage {
	 ...
            parserGenerator= {
                options = {
                    classSplitting = true
                    fieldsPerClass = "200"
                    methodsPerClass = "200"
                }
            }
}

Previous Topic:Default INT value to 0 not serialized in xmi
Next Topic:Large if-then-else results in stack overflow in ANTLR parser
Goto Forum:
  


Current Time: Thu Feb 13 12:29:13 GMT 2025

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

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

Back to the top