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
wang yan is currently offline wang yanFriend
Messages: 3
Registered: October 2021
Junior Member
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
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14593
Registered: July 2009
Senior Member
Hi did you check if the class splitting options in the workflow help ?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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
wang yan is currently offline wang yanFriend
Messages: 3
Registered: October 2021
Junior Member
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 Dec 07 16:18:02 GMT 2023

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

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

Back to the top