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


Generate backup information to lex.backup.


Debug mode.


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


Help summary.


Scan case-insensitively.


Maximum lex compatibility.

-o file

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


Print performance report.


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


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


Print a summary of statistics.


Suppress warning messages.


Generate batch (noninteractive) scanner.


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).


Generate an interactive scanner (default).


Suppress #line directives in lex.yy.c.

-P prefix

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


Print version number.


Generate a 7-bit scanner.


Generate an 8-bit scanner (default).


Generate a C++ scanner class.


Compress scanner tables but do not use equivalence classes.


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


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


Generate full scanner tables, not compressed.


Generate faster scanner tables, like -F.


Construct metaequivalence classes (default).


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ć fontconfig system. Lists available fonts and font styles. The first argument will limit listed fonts to those matching the pattern, and the second displays the listed font attribute or element. To co znaczy.
Przykład FLEX użycie :
Jak użyć administration command. Call the filesystem checker for the appropriate system type to check and repair unmounted filesystems. If a filesystem is consistent, the number of files, number of blocks krzyżówka.
Przykład FLEX użycie :
Jak użyć the named files so that they are no wider than the specified width. fold breaks lines exactly at the specified width, even in the middle of a word. Reads from standard input when given - as a file co to jest.
Przykład FLEX użycie :
Jak użyć Remote user information server. fingerd provides a network interface to the finger program. It listens for TCP connections on the finger port and, for each connection, reads a single input line słownik.
Przykład FLEX użycie :
Jak użyć Classify the named files according to the type of data they contain. file checks the magic file (usually /usr/share/magic ) to identify some file types czym jest.