[antlr-interest] [c target] memory leaks during error recovery
Jim Idle
jimi at temporal-wave.com
Mon Oct 19 21:38:50 PDT 2009
See pervious answer to this question...
Jim
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of yurushkin at rambler.ru
> Sent: Monday, October 19, 2009 2:37 AM
> To: antlr-interest at antlr.org
> 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
More information about the antlr-interest
mailing list