[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yyparse more than once
From: |
John W. Millaway |
Subject: |
Re: yyparse more than once |
Date: |
Wed, 30 Jan 2002 15:04:40 -0800 (PST) |
> I am calling yyparse more than once like one below
[...]
> I am using bison 1.25 and Flex for parser and scanner generator...
> The first call is completed successfully where as the second call
> failed...
Read the flex manual, search for yyrestart. In particular, yyrestart does not
reset the scanner start condition, i.e., it does not call BEGIN(INITIAL) for
you. You must do this yourself.
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com