[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parsing multiple files with same parser
From: |
Hans Aberg |
Subject: |
Re: Parsing multiple files with same parser |
Date: |
Sun, 18 Nov 2012 01:20:17 +0100 |
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