Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » ANTLR 4.1(Incorporation of ANTLR 4.1 into Xtext)
ANTLR 4.1 [message #1065485] Wed, 26 June 2013 00:17 Go to next message
Michael Card is currently offline Michael CardFriend
Messages: 7
Registered: June 2013
Junior Member
Hello everyone-

I have an Xtext grammar with 119 production rules, 14 of which are enum declarations.

Unfortunately, the embedded ANTLR generates a InternalParser with over 3000 "DFAs", each of which is a static constant BitSet that is apparently used for syntax error reporting. The sheer number of these "DFAs" causes the InternalParser class that is generated for my DSL to get the infamous "static initializer is exceeding 65535 bytes" error in Java.

This particular bug has been corrected in ANTLR 4.1, which as I understand it will be released soon. When will this new version of ANTLR be incorporated into Xtext?

Thanks!

-Mike
Re: ANTLR 4.1 [message #1065503 is a reply to message #1065485] Wed, 26 June 2013 07:56 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
I had a similar problem on a generated lexer once.
I managed to get it re-generated (after a xtext generation, using the .g generated by xtext) by another ANTLR version than the one using by xtext which resolved the problem.
This wouldn't work for the parser though.
Previous Topic:DSL project wizard
Next Topic:Xtextresource error
Goto Forum:
  


Current Time: Thu Apr 25 13:45:13 GMT 2024

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

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

Back to the top