Mail Archives: djgpp/1998/06/16/20:21:10
Thanks, Nate and Erik, for your assistance. This does indeed do the
job:
From the flex info:
> If you do not supply your own version of `yywrap()', then you must
> either use `%option noyywrap' (in which case the scanner behaves as
> though `yywrap()' returned 1), or you must link with `-lfl' to
> obtain the default version of the routine, which always returns 1.
And the main point of yywrap(), far as I can tell, is to allow you to
allow for the possibility of opening a new input file after the last
one EOFs.
Flex is amazing- I've wasted a lot of time in the past writing
context-specific code to do subsets of what it does generically (and
fast).
- Raw text -