Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3002748 By: nobody
I'm trying to implement some error recovery in Bison. My lexer allocates memory with new and passes it back to Bison via a semantic value. During error recovery, Bison discards tokens until it can resynchronize (essentially leaking the memory allocated by the lexer). The Bison 1.875 docs (section 3.7.5) mention the %destructor directive which is suppossed to tell Bison to generate code to handle these discarded tokens. When running the latest GnuWin32 version of Bison on a file with a %destructor directive, I get a hard crash with the message: "NONE:0 m4: ERROR: EOF in string" and then M$ asks me if I want to send an error report. Can anyone suggest anything here? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=74807 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users