and then exits.
@anchor{option-header}
-@item --header=FILE, @code{%option header="FILE"}
+@item --header-file=FILE, @code{%option header-file="FILE"}
instructs flex to write a C header to @file{FILE}. This file contains
function prototypes, extern variables, and types used by the scanner.
Only the external API is exported by the header file. Many macros that
While in the header, the macro @code{yyIN_HEADER} is defined, where @samp{yy}
is substituted with the appropriate prefix.
-The @samp{--header} option is not compatible with the @samp{--c++} option,
+The @samp{--header-file} option is not compatible with the @samp{--c++} option,
since the C++ scanner provides its own header in @file{yyFlexLexer.h}.
@anchor{option-case-insensitive}
@end verbatim
@end example
-You may find that @code{%option header} is particularly useful for generating
+You may find that @code{%option header-file} is particularly useful for generating
prototypes of all the accessor functions. @xref{option-header}.
@node Extra Data
useecs = false;
break;
- case OPT_HEADER:
+ case OPT_HEADER_FILE:
headerfilename = arg;
break;
" -S, --skel=FILE specify skeleton file\n"
" -t, --stdout write scanner on stdout instead of %s\n"
" --yyclass=NAME name of C++ class\n"
- " --header=FILE create a C header file in addition to the scanner\n"
- " --tables-file[=FILE] write tables to FILE\n" "\n"
+ " --header-file=FILE create a C header file in addition to the scanner\n"
+ " --tables-file[=FILE] write tables to FILE\n" "\n"
"Scanner behavior:\n"
" -7, --7bit generate 7-bit scanner\n"
" -8, --8bit generate 8-bit scanner\n"
,
{"--full", OPT_FULL, 0}
, /* Same as -Cfr. */
- {"--header[=FILE]", OPT_HEADER, 0}
+ {"--header-file[=FILE]", OPT_HEADER_FILE, 0}
,
{"-?", OPT_HELP, 0}
,