Hi and Hello to everyone, I would really appreciate any hints and advices if someone can give my relating to my problem. I would like to know how to deal with the situation where you would use same character for multiple rules/operations. For example in Visual Basic you use '=' for both variable assignment (a=10) and for comparison (if(a=10 then ....).
Clearly, using assignment rule:assignment: ID '=' expression; and later relation rule: relation: atom ('=' atom)*; gives out error like rule relation has non-LL(*) decision due to recursive rule invocations reachable from alts 1,6. Resolve by left-factoring or using syntactic predicates or using backtrack=true option. And, yes, it is clear that antlr can not decide when to use assignment and when comparison, makes sense. But, my question is, how to deal with this? I'm not interested in using different characters for rules(e.x. '==' etc.). Is this where I have to look into the backtracking? Or is there some other way, that I'm not aware of? Help would be most appreciated, Lee 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.