man flex Command

Man page for apt-get flex Command

Man Page for flex in Linux

Ubuntu Man Command : man flex

Man Flex  Command

This tutorial shows the man page for man flex in linux.

Open terminal with 'su' access and type the command as shown below:
man flex

Result of the Command Execution shown below:

FLEX(1)                                                                     User Commands                                                                    FLEX(1)

flex the fast lexical analyser generator

flex [OPTIONS] [FILE]...

Generates programs that perform pattern matching on text.

Table Compression:
Ca, align
trade off larger tables for better memory alignment

Ce, ecs
construct equivalence classes

Cf do not compress tables; use f representation

CF do not compress tables; use F representation

Cm, meta ecs
construct meta equivalence classes

Cr, read
use read() instead of stdio for scanner input

f, full
generate fast, large scanner. Same as Cfr

F, fast
use alternate table representation. Same as CFr

Cem default compression (same as ecs meta ecs)

d, debug
enable debug mode in scanner

b, backup
write backing up information to lex.backup

p, perf report
write performance report to stderr

s, nodefault
suppress default rule to ECHO unmatched text

T, trace
flex should run in trace mode

w, nowarn
do not generate warnings

v, verbose
write summary of scanner statistics to stdout

o, outfile=FILE
specify output filename

S, skel=FILE
specify skeleton file

t, stdout
write scanner on stdout instead of lex.yy.c

name of C++ class

header file=FILE
create a C header file in addition to the scanner

tables file[=FILE] write tables to FILE

Scanner behavior:
7, 7bit
generate 7 bit scanner

8, 8bit
generate 8 bit scanner

B, batch
generate batch scanner (opposite of I)

i, case insensitive
ignore case in patterns

l, lex compat
maximal compatibility with original lex

X, posix compat
maximal compatibility with POSIX lex

I, interactive
generate interactive scanner (opposite of B)

track line count in yylineno

Generated code:
+, c++
generate C++ scanner class


Related Topics

Apt Get Commands