help-flex
[Top][All Lists]
Advanced

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

Re: Bug: %option main overrides %option yywrap


From: John W. Millaway
Subject: Re: Bug: %option main overrides %option yywrap
Date: Wed, 25 Apr 2001 15:30:59 -0700 (PDT)

> Additionally, flex.1 says the following:
> 
>        main   directs  flex  to  provide a default main() program
>               for the scanner, which simply calls yylex().   This
>               option implies noyywrap (see below).

I understand, and it makes sense. Just be aware that the inverse of this rule is
also true --  %option nomain implies yywrap -- which makes much less sense.

Of course, I only complain because it had me on one heck of a bug hunt. I had
specified %option noyywrap and %option nomain, yet the linker complained that it
couldn't find yywrap. I thought I had broken something! :)

-John


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



reply via email to

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