1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.11.
2 .TH FLEX "1" "March 2014" "flex 2.5.39" "User Commands"
4 flex \- the fast lexical analyser generator
7 [\fIOPTIONS\fR] [\fIFILE\fR]...
9 Generates programs that perform pattern\-matching on text.
10 .SS "Table Compression:"
12 \fB\-Ca\fR, \fB\-\-align\fR
13 trade off larger tables for better memory alignment
15 \fB\-Ce\fR, \fB\-\-ecs\fR
16 construct equivalence classes
19 do not compress tables; use \fB\-f\fR representation
22 do not compress tables; use \fB\-F\fR representation
24 \fB\-Cm\fR, \fB\-\-meta\-ecs\fR
25 construct meta\-equivalence classes
27 \fB\-Cr\fR, \fB\-\-read\fR
28 use read() instead of stdio for scanner input
30 \fB\-f\fR, \fB\-\-full\fR
31 generate fast, large scanner. Same as \fB\-Cfr\fR
33 \fB\-F\fR, \fB\-\-fast\fR
34 use alternate table representation. Same as \fB\-CFr\fR
37 default compression (same as \fB\-\-ecs\fR \fB\-\-meta\-ecs\fR)
40 \fB\-d\fR, \fB\-\-debug\fR
41 enable debug mode in scanner
43 \fB\-b\fR, \fB\-\-backup\fR
44 write backing\-up information to lex.backup
46 \fB\-p\fR, \fB\-\-perf\-report\fR
47 write performance report to stderr
49 \fB\-s\fR, \fB\-\-nodefault\fR
50 suppress default rule to ECHO unmatched text
52 \fB\-T\fR, \fB\-\-trace\fR
53 flex should run in trace mode
55 \fB\-w\fR, \fB\-\-nowarn\fR
56 do not generate warnings
58 \fB\-v\fR, \fB\-\-verbose\fR
59 write summary of scanner statistics to stdout
62 \fB\-o\fR, \fB\-\-outfile\fR=\fIFILE\fR
63 specify output filename
65 \fB\-S\fR, \fB\-\-skel\fR=\fIFILE\fR
68 \fB\-t\fR, \fB\-\-stdout\fR
69 write scanner on stdout instead of lex.yy.c
71 \fB\-\-yyclass\fR=\fINAME\fR
74 \fB\-\-header\-file\fR=\fIFILE\fR
75 create a C header file in addition to the scanner
77 \fB\-\-tables\-file\fR[=\fIFILE\fR] write tables to FILE
78 .SS "Scanner behavior:"
80 \fB\-7\fR, \fB\-\-7bit\fR
81 generate 7\-bit scanner
83 \fB\-8\fR, \fB\-\-8bit\fR
84 generate 8\-bit scanner
86 \fB\-B\fR, \fB\-\-batch\fR
87 generate batch scanner (opposite of \fB\-I\fR)
89 \fB\-i\fR, \fB\-\-case\-insensitive\fR
90 ignore case in patterns
92 \fB\-l\fR, \fB\-\-lex\-compat\fR
93 maximal compatibility with original lex
95 \fB\-X\fR, \fB\-\-posix\-compat\fR
96 maximal compatibility with POSIX lex
98 \fB\-I\fR, \fB\-\-interactive\fR
99 generate interactive scanner (opposite of \fB\-B\fR)
102 track line count in yylineno
103 .SS "Generated code:"
106 generate C++ scanner class
108 \fB\-Dmacro\fR[=\fIdefn\fR]
109 #define macro defn (default defn is '1')
111 \fB\-L\fR, \fB\-\-noline\fR
112 suppress #line directives in scanner
114 \fB\-P\fR, \fB\-\-prefix\fR=\fISTRING\fR
115 use STRING as prefix instead of "yy"
117 \fB\-R\fR, \fB\-\-reentrant\fR
118 generate a reentrant C scanner
120 \fB\-\-bison\-bridge\fR
121 scanner for bison pure parser.
123 \fB\-\-bison\-locations\fR
124 include yylloc support.
127 initialize yyin/yyout to stdin/stdout
129 \fB\-\-noansi\-definitions\fR old\-style function definitions
131 \fB\-\-noansi\-prototypes\fR
132 empty parameter list in prototypes
135 do not include <unistd.h>
138 do not generate a particular FUNCTION
142 do\-nothing POSIX option
145 do\-nothing POSIX option
149 \fB\-h\fR, \fB\-\-help\fR
150 produce this help message
152 \fB\-V\fR, \fB\-\-version\fR
155 The full documentation for
157 is maintained as a Texinfo manual. If the
161 programs are properly installed at your site, the command
165 should give you access to the complete manual.