error: code too large for try statement + java heap [message #1861217] |
Fri, 29 September 2023 17:20  |
Eclipse User |
|
|
|
Hi,
I am using Xtext to generate java code for a huge mysql grammar. I am facing a java heap error, even after increasing the Xms/Xmx size. I tried ti hide a subset of my big set of keywords which made my generation goes smoothly. However, when I use Antlrworks to debug my grammar I end up with a "code too large for try statement" error. Splitting my grammar doesn't work either. Let's say I have a rule with a big set of keywords which can be IDs named KeywordsCanBeId:
1- Should I define these keywords as rules or terminals?
2- Should I split this rule to subrules.? and how should I chose the number of keyword alternatives in each subrule?
3- What is the best way to get rid of these issues when dealing with rules that containes a big set of keyword alternatives (R:A|B|C|.....)?
thank you for your help
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05641 seconds