Co robi FLEX użycie. Konsola program (named lex.yy.c ) based on the regular expressions and C.

Czy przydatne?

Polecenie flex

Wykonanie, użycie: flex (Fast Lexical Analyzer Generator) is a faster variant of lex. It generates a lexical analysis program (named lex.yy.c) based on the regular expressions and C statements contained in one or more input files. See also bison, yacc, and the O'Reilly book lex ; yacc

Opcje wykonania flex w konsoli

-b

Generate backup information to lex.backup.

-d

Debug mode.

-f

Use a faster scanner. The result is larger but faster.

-h

Help summary.

-i

Scan case-insensitively.

-l

Maximum lex compatibility.

-o file

Write output to file instead of lex.yy.c.

-p

Print performance report.

-s

Exit if the scanner encounters input that does not match any of its rules.

-t

Print to standard output. (By default, flex prints to lex.yy.c.)

-v

Print a summary of statistics.

-w

Suppress warning messages.

-B

Generate batch (noninteractive) scanner.

-F

Use the fast scanner table representation. This option is usually as fast as -f and often generates smaller data (although for some data sets, it generates larger data).

-I

Generate an interactive scanner (default).

-L

Suppress #line directives in lex.yy.c.

-P prefix

Change default yy prefix to prefix for all globally visible variable and function names.

-V

Print version number.

-7

Generate a 7-bit scanner.

-8

Generate an 8-bit scanner (default).

-+

Generate a C++ scanner class.

-C

Compress scanner tables but do not use equivalence classes.

-Ca

Align tables for memory access and computation. This creates larger tables but gives faster performance.

-Ce

Construct equivalence classes. This creates smaller tables and sacrifices little performance (default).

-Cf

Generate full scanner tables, not compressed.

-CF

Generate faster scanner tables, like -F.

-Cm

Construct metaequivalence classes (default).

-Cr

Bypass use of the standard I/O library; use read( ) system calls instead.

Przykłady flex działanie w Słownik polecenie F

Przykład FLEX użycie :
Jak użyć specified width by filling lines and removing newlines. Concatenate files on the command line, or read text from standard input if - (or no file) is specified. By default, preserve blank lines co znaczy.
Przykład FLEX użycie :
Jak użyć administration command. Retrieve mail from mail servers and forward it to the local mail delivery system. fetchmail retrieves mail from servers that support the common mail protocols POP2, POP3 krzyżówka.
Przykład FLEX użycie :
Jak użyć and from remote network site hostname . ftp prompts the user for a command. The commands are listed after the options. Some of the commands are toggles, meaning they turn on a feature when it is off co to jest.
Przykład FLEX użycie :
Jak użyć Low-level format of a floppy disk. The device for a standard format is usually /dev/fd0 or /dev/fd1 słownik.
Przykład FLEX użycie :
Jak użyć Display statistics about memory usage: total free, used, physical, swap, shared, and buffers used by the kernel czym jest.