help-flex
[Top][All Lists]
Advanced

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

Re: still more 2.5.11 comments


From: Bruce Lilly
Subject: Re: still more 2.5.11 comments
Date: Mon, 12 Aug 2002 16:59:11 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

John Millaway wrote:
It would be nice if flex would provide a header file
with declarations for the "get" and "set" functions.


It already does. See `%option header' (--header).  -John

OK...some comments:

1. the header produced is a bit large (larger in fact than the
   generated .c file) and includes all of the executable code
   as well as declarations.

2. Quite a large fraction of the file is effectively chopped
   out by the preprocessor, but that still requires processing
   time for every source file that includes the header, as well
   as increasing the size of any distribution that includes the
   header.  Example: I have a 1000 line, 32 kB .l file; the
   generated header is more than 11000 lines and > half a megabyte.

3. The start condition definitions are in there too (and they
   would be useful) but they're in the part that the preprocessor
   discards...

4. A cross-reference from section 18 of the documentation would
   be helpful.

Best regards,
  Bruce Lilly






reply via email to

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