Hi.
Dne 17.11.2012 (sob) ob 17:24 -0800 je Chris verBurg napisal(a):
>
> One thing that's bitten me in the past is that yyrestart doesn't reset
> the flex start-state. If you have any of those, maybe add a
> "BEGIN(INITIAL)" to your other flush code?
I'm not using any of this stuff, since my as
One thing that's bitten me in the past is that yyrestart doesn't reset the
flex start-state. If you have any of those, maybe add a "BEGIN(INITIAL)"
to your other flush code?
-Chris
On Sat, Nov 17, 2012 at 4:56 PM, Tadej Borovšak wrote:
> Hi.
>
> Dne 18.11.2012 (ned) ob 01:20 +0100 je Hans Abe
Hi.
Dne 18.11.2012 (ned) ob 01:20 +0100 je Hans Aberg napisal(a):
> 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 ();
> >
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
Hi all!
I'm trying to create a simple processor emulator that uses flex/bison
combo to create parser/compiler for custom assembly language.
I managed to create a parser that compiles assembly into "machine code"
and it works just great. But now I'm getting an error when trying to run
my parser fo