[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling yyparse repeatedly

From: Akim Demaille
Subject: Re: calling yyparse repeatedly
Date: 24 Jan 2002 10:04:09 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Prabhu" == Prabhu M K <Prabhu> writes:

Prabhu> Where i am doing wrong....

I guess you are not reinitializing your scanner properly.  Don't just
change yyin, the poor scanner has caches and needs to be warned when
you changed your input.  See the documentation of your favorite Lex.

BTW, you should use Bison's YYDEBUG feature, and look what your parser
receives the second time.  Or, instead of calling yyparse a second
time, called yylex a couple of times by hand, and look at the result
(I bet its a series of 0).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]