Greetings! On Wed, 2010-02-10 at 23:05 -0500, [email protected] wrote: > Hi, I am relatively new to ANTLR but I have to make a custom-built grammar > file for the Java language. I am having trouble with a rule for which I > get a > > rule arrayInstantiation has non-LL(*) decision due to recursive rule > invocations reachable from alts 1,2. Resolve by left-factoring or using > syntactic predicates or using backtrack=true option. > > To identify the cause of the trouble, I am taking the approach of removing > things from my grammar until the thing compiles again. Problem is, I've > got it to compile but I've removed a rule that wasn't actually invoked in > another rule. I do not understand this. Should I be surprised? If I > comment this rule out, my grammar builds. But if I leave the rule (that > isn't invoked anywhere and should be impossible to reach) uncommented then > my build fails. >
Seems very odd. Please post the *SMALLEST* sample grammar that contains your problem so that we can try to analyze the cause. 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.
