help-flex
[Top][All Lists]
Advanced

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

reinitializing lex scanner


From: Vlad Panait
Subject: reinitializing lex scanner
Date: Tue, 25 Jan 2005 16:37:52 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803

Hi,

i would like to run a lex scanner several times. If i don't get any parce errors from the grammar, all is fine.
If there is an error, in the yyerror i print a message and stop.
Then if i try to run the scanner on another file, it seems it buffered the info from the previous file, and continues from the wrong place. I've checked the yy_delete_buffer function in flex, and tried to use it, but it cannot find it at compile time.

Any suggestions?
Best regards,
Vlad




reply via email to

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