See pervious answer to this question... Jim
> -----Original Message----- > From: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of [email protected] > Sent: Monday, October 19, 2009 2:37 AM > To: [email protected] > Subject: [antlr-interest] [c target] memory leaks during error recovery > > good day, > I have the rule > > myRule[returns Type1 res] : > rule1, rule2, rule3, rule4... ruleN { res = f($rule1, $rule2,..., > , > $ruleN) } > ; > > it's all ok. > BUT if ruleN will fire exception, rule1, rule2.. rule(N-1) subtrees > will > be forgotten!!! > How can I manage such situations?? can you write me right code for such > rule, that gives answer on my question? > thanks > > PS: I tried to use "catch" attribute .. but it needs errorCode. It's > not > good, because there're may be different errors. > > -- > Best regards, > Michael > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your- > email-address 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 -~----------~----~----~----~------~----~------~--~---
