On Fri, Jun 19, 2015 at 03:28:48PM +0200, Martin Alexander Neumann wrote:
> Hi John,
> 
> I guess your "strdup" eats the memory. You need to manage this dynamic
> memory somewhere in the parser/your program.
> 
> Maybe interesting for you: in case of automated parser recovery, bison
> offers %destructor[1] to handle memory of automatically discarded symbols.

I unfortunately discovered this shortly after I had sent the mail.  I
was hoping it was a subscribe-only list to save myself the embarrassment
;)  Just a byproduct of coding for too long at once.

Thanks, and I'll definitely look into your suggestion as well!

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to