|
From: | Hans Aberg |
Subject: | Re: go back to initial state - yyparse() |
Date: | Mon, 3 May 2010 22:34:39 +0200 |
On 2 May 2010, at 20:27, falcore wrote:
I´m using a parser to analize strings introduced interactively from thestandard output. There is a call to yyparse() inside a loop, ...
...
... the first time is called works fine, but in consecutively calls, theparser fails.
If your lexer is generated by Flex, you might have forgotten to call yyrestart().
Hans
[Prev in Thread] | Current Thread | [Next in Thread] |