3 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
4 .TH FLEX "1" "February 2008" "flex 2.5.35" "User Commands"
6 flex \- the fast lexical analyser generator
9 [\fIOPTIONS\fR] [\fIFILE\fR]...
11 Generates programs that perform pattern\-matching on text.
12 .SS "Table Compression:"
14 \fB\-Ca\fR, \fB\-\-align\fR
15 trade off larger tables for better memory alignment
17 \fB\-Ce\fR, \fB\-\-ecs\fR
18 construct equivalence classes
21 do not compress tables; use \fB\-f\fR representation
24 do not compress tables; use \fB\-F\fR representation
26 \fB\-Cm\fR, \fB\-\-meta\-ecs\fR
27 construct meta\-equivalence classes
29 \fB\-Cr\fR, \fB\-\-read\fR
30 use read() instead of stdio for scanner input
32 \fB\-f\fR, \fB\-\-full\fR
33 generate fast, large scanner. Same as \fB\-Cfr\fR
35 \fB\-F\fR, \fB\-\-fast\fR
36 use alternate table representation. Same as \fB\-CFr\fR
39 default compression (same as \fB\-\-ecs\fR \fB\-\-meta\-ecs\fR)
42 \fB\-d\fR, \fB\-\-debug\fR
43 enable debug mode in scanner
45 \fB\-b\fR, \fB\-\-backup\fR
46 write backing\-up information to lex.backup
48 \fB\-p\fR, \fB\-\-perf\-report\fR
49 write performance report to stderr
51 \fB\-s\fR, \fB\-\-nodefault\fR
52 suppress default rule to ECHO unmatched text
54 \fB\-T\fR, \fB\-\-trace\fR
55 flex should run in trace mode
57 \fB\-w\fR, \fB\-\-nowarn\fR
58 do not generate warnings
60 \fB\-v\fR, \fB\-\-verbose\fR
61 write summary of scanner statistics to stdout
64 \fB\-o\fR, \fB\-\-outfile\fR=\fIFILE\fR
65 specify output filename
67 \fB\-S\fR, \fB\-\-skel\fR=\fIFILE\fR
70 \fB\-t\fR, \fB\-\-stdout\fR
71 write scanner on stdout instead of lex.yy.c
73 \fB\-\-yyclass\fR=\fINAME\fR
76 \fB\-\-header\-file\fR=\fIFILE\fR
77 create a C header file in addition to the scanner
79 \fB\-\-tables\-file\fR[=\fIFILE\fR] write tables to FILE
80 .SS "Scanner behavior:"
82 \fB\-7\fR, \fB\-\-7bit\fR
83 generate 7\-bit scanner
85 \fB\-8\fR, \fB\-\-8bit\fR
86 generate 8\-bit scanner
88 \fB\-B\fR, \fB\-\-batch\fR
89 generate batch scanner (opposite of \fB\-I\fR)
91 \fB\-i\fR, \fB\-\-case\-insensitive\fR
92 ignore case in patterns
94 \fB\-l\fR, \fB\-\-lex\-compat\fR
95 maximal compatibility with original lex
97 \fB\-X\fR, \fB\-\-posix\-compat\fR
98 maximal compatibility with POSIX lex
100 \fB\-I\fR, \fB\-\-interactive\fR
101 generate interactive scanner (opposite of \fB\-B\fR)
104 track line count in yylineno
105 .SS "Generated code:"
108 generate C++ scanner class
110 \fB\-Dmacro\fR[=\fIdefn\fR]
111 #define macro defn (default defn is '1')
113 \fB\-L\fR, \fB\-\-noline\fR
114 suppress #line directives in scanner
116 \fB\-P\fR, \fB\-\-prefix\fR=\fISTRING\fR
117 use STRING as prefix instead of "yy"
119 \fB\-R\fR, \fB\-\-reentrant\fR
120 generate a reentrant C scanner
122 \fB\-\-bison\-bridge\fR
123 scanner for bison pure parser.
125 \fB\-\-bison\-locations\fR
126 include yylloc support.
129 initialize yyin/yyout to stdin/stdout
131 \fB\-\-noansi\-definitions\fR old\-style function definitions
133 \fB\-\-noansi\-prototypes\fR
134 empty parameter list in prototypes
137 do not include <unistd.h>
140 do not generate a particular FUNCTION
144 do\-nothing POSIX option
147 do\-nothing POSIX option
151 \fB\-h\fR, \fB\-\-help\fR
152 produce this help message
154 \fB\-V\fR, \fB\-\-version\fR
157 The full documentation for
159 is maintained as a Texinfo manual. If the
163 programs are properly installed at your site, the command
167 should give you access to the complete manual.