[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: lex


flex calls yywrap function when it encounters end of the stream. Depending upon
the value yywrap returned it determines whether to continue or not. It's useful
when you want to get notified at the end of buffer and then switch to something
else etc...

-lfl or %option noyywrap always behaves as if yywrap has returned 1 i.e. no
further scanning...

Approximate and limited stuff IIRC, but once again 'man flex' zindaabaad.
Ironically that's all flex documentation available though enough. 150 page man
page has to be enough...:-))


sreangsu acharyya wrote:

> try putting the linking options at the end
> gcc lex.yy.cc -lfl