Hello Terence, > Interesting. That's not that big.Only 162 strings should not merely be enough > to blow out the 64k static INIT method limit. hmm... perhaps the other > arrays are the big as well. > ter
I just tried to delete 'static' but of course that doesn't work: XYZParser.java:347: non-static variable tokenNames cannot be referenced from a static context So the question is - any solution for that problem? Thanks and greetings Udo > On Sep 26, 2011, at 8:42 AM, Udo Weik wrote: > >> Hello Terence, >> >>> wow! how big is that grammar? >>> Ter >> >> I'm trying to get the VHDL-grammar for the CSharp-target from >> Mike Lodder working with Java: >> http://www.antlr.org/grammar/1202750770887/vhdl.g >> >> Some first, very basic modifications see attachement. >> First of all that grammar should work with ANTLRWorks 1.4.3. >> >> Many thanks for any support >> Udo >> >> >>> On Sep 26, 2011, at 6:50 AM, Udo Weik wrote: >>> >>>> Hello, >>>> >>>> the length of that line is 1647 chars (162 strings). >>>> The grammar is an existing one. What can/must I do? >>>> >>>> [15:41:27] XYZParser.java:14: code too large >>>> [15:41:27] public static final String[] tokenNames = new String[] { >>>> [15:41:27] ^ >>>> [15:41:27] 1 error >>>> >>>> >>>> Many thanks and greetings >>>> Udo >>>> >>>> >>>> List: http://www.antlr.org/mailman/listinfo/antlr-interest >>>> Unsubscribe: >>>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address >>> >> >> <vhdl__UW1a.g> > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
