Does anyone have experience in using lex/flex to scan a file
more than one time? If so, what variables have to be reset
or which functions have to be called to make the scanner
work??
With flex I tried to use yyrestart() after opening the same
file a second time, but the lexer broke, i.e. it scanned
where it shouldn't scan (don't know - strange things happend).
With lex the following happend:
While scanning a very large file, after some 100K, suddenly
the message "Input string too long, limit 200" appeared.
But the file definitely was alright. I used dbx to see the
string yytext grow larger and larger, but it contained only
tokens that _can_ be matched...
If you ever did have an simliar problem or anyway have some
kind of remark to this problem please let me know!!
Thanks
Nico Schmidt