|
From: | Bribeiro |
Subject: | Re: Re: Sequences of calls to yyparse... |
Date: | Tue, 16 Jul 2002 12:01:40 |
Thanks for your help!
I did the following: everytime I have to use the parse, I do:
yyin = fopen(fname, "r");
rewind(yyin);
yyrestart(yyin);
and everything is working : )
[],s
Bruno.
------- Original Message --------
De: "Prabhu M.K."
Hello!
I'm having a problem with callings to yyparse. I
have a code that
needs
to call yyparse a lot of times, for diferent files.
But just
the first
calling is working, cause the subsequent returns parse
error.
There's a \n garbage in lex, I think. Or when the
parse finds a
error, it
leaves garbage in yylex.
But when I call yyparse again, the first token read
is that
garbage.
How can I clear eveything to start a new parse?
Thanks,
Bruno.
[Prev in Thread] | Current Thread | [Next in Thread] |