Hi, I have a rule and its tree construction such below: a : b | c! a c! | a d^ a I apply left recursion removal algorithm and convert above rule to below two rules: a : b a' | c a c a' a' : (d a a')? But now, I cannot create the parse tree I want. That's, I want "a : a d a" rule in the first case, to have 'd' as the root of the two 'a's. But in the two-rule case after the left recursion removal, I cannot provide this tree. What should I do to remove left recursion, but also provide the tree I need? I would be glad if you have an idea and share it with me.
-- -safiye --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
