1FLEX(1)                          User Commands                         FLEX(1)
2
3
4

NAME

6       flex - fast lexical analyzer generator
7

SYNOPSIS

9       flex [OPTIONS] [FILE]...
10

DESCRIPTION

12       Generates programs that perform pattern-matching on text.
13
14   Table Compression:
15       -Ca, --align
16              trade off larger tables for better memory alignment
17
18       -Ce, --ecs
19              construct equivalence classes
20
21       -Cf    do not compress tables; use -f representation
22
23       -CF    do not compress tables; use -F representation
24
25       -Cm, --meta-ecs
26              construct meta-equivalence classes
27
28       -Cr, --read
29              use read() instead of stdio for scanner input
30
31       -f, --full
32              generate fast, large scanner. Same as -Cfr
33
34       -F, --fast
35              use alternate table representation. Same as -CFr
36
37       -Cem   default compression (same as --ecs --meta-ecs)
38
39   Debugging:
40       -d, --debug
41              enable debug mode in scanner
42
43       -b, --backup
44              write backing-up information to lex.backup
45
46       -p, --perf-report
47              write performance report to stderr
48
49       -s, --nodefault
50              suppress default rule to ECHO unmatched text
51
52       -T, --trace
53              flex should run in trace mode
54
55       -w, --nowarn
56              do not generate warnings
57
58       -v, --verbose
59              write summary of scanner statistics to stdout
60
61   Files:
62       -o, --outfile=FILE
63              specify output filename
64
65       -S, --skel=FILE
66              specify skeleton file
67
68       -t, --stdout
69              write scanner on stdout instead of lex.yy.c
70
71       --yyclass=NAME
72              name of C++ class
73
74       --header-file=FILE
75              create a C header file in addition to the scanner
76
77       --tables-file[=FILE] write tables to FILE
78
79   Scanner behavior:
80       -7, --7bit
81              generate 7-bit scanner
82
83       -8, --8bit
84              generate 8-bit scanner
85
86       -B, --batch
87              generate batch scanner (opposite of -I)
88
89       -i, --case-insensitive
90              ignore case in patterns
91
92       -l, --lex-compat
93              maximal compatibility with original lex
94
95       -X, --posix-compat
96              maximal compatibility with POSIX lex
97
98       -I, --interactive
99              generate interactive scanner (opposite of -B)
100
101       --yylineno
102              track line count in yylineno
103
104   Generated code:
105       -+,  --c++
106              generate C++ scanner class
107
108       -Dmacro[=defn]
109              #define macro defn  (default defn is '1')
110
111       -L,  --noline
112              suppress #line directives in scanner
113
114       -P,  --prefix=STRING
115              use STRING as prefix instead of "yy"
116
117       -R,  --reentrant
118              generate a reentrant C scanner
119
120       --bison-bridge
121              scanner for bison pure parser.
122
123       --bison-locations
124              include yylloc support.
125
126       --stdinit
127              initialize yyin/yyout to stdin/stdout
128
129       --noansi-definitions old-style function definitions
130
131       --noansi-prototypes
132              empty parameter list in prototypes
133
134       --nounistd
135              do not include <unistd.h>
136
137       --noFUNCTION
138              do not generate a particular FUNCTION
139
140   Miscellaneous:
141       -c     do-nothing POSIX option
142
143       -n     do-nothing POSIX option
144
145       -?
146
147       -h, --help
148              produce this help message
149
150       -V, --version
151              report flex version
152

SEE ALSO

154       The  full documentation for flex is maintained as a Texinfo manual.  If
155       the info and flex programs are properly installed  at  your  site,  the
156       command
157
158              info flex
159
160       should give you access to the complete manual.
161
162
163
164flex 2.5.33                      February 2006                         FLEX(1)
Impressum