On 17 Nov 2012, at 23:48, Tadej Borovšak wrote: > ... now I'm getting an error when trying to run > my parser for the second time using the same file as input [1]. ... > /* Open input stream etc. */ > yyparse (); > /* Close input stream and reopen it */ > /* Flush flex buffer using YY_FLUSH_BUFFER */ > yyparse ();
Have you tried using yyrestart() before calling the scanner again? Hans _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison