Flex is a tool for generating scanners: programs which recognized lexical patterns in text. It reads the given input files for a description of a scanner to generate. The description is in the form of pairs of regular expressions and C code, called rules. Flex generates as output a C source file, lex.yy.c, which defines a routine yylex(). This file is compiled and linked with the -lfl library to produce an executable. When the executable is run, it analyzes its input for occurrences of the regular expressions. Whenever it finds one, it executes the corresponding C code.
The behaviour of Flex has undergone a major change since version 2.5.4a. Flex scanners are now reentrant, and it is now possible to have multiple scanners in the same program with differing sets of defaults, and the scanners play nicer with modern C and C++ compilers. The Flip side is that Flex no longer conforms to the POSIX lex behaviour, and the scanners require conforming implementations when flex is used in ANSI C mode. The package flex-old provides the older behaviour.
|
|
|
| 硬件架构 | 软件包大小 | 安装后大小 | 文件 |
|---|---|---|---|
| alpha | 320.6 kB | 1032 kB | [文件列表] |
| amd64 | 320.8 kB | 1004 kB | [文件列表] |
| arm | 316.6 kB | 785 kB | [文件列表] |
| armel | 313.4 kB | 984 kB | [文件列表] |
| hppa | 318.8 kB | 988 kB | [文件列表] |
| i386 | 306.7 kB | 776 kB | [文件列表] |
| ia64 | 352.6 kB | 1244 kB | [文件列表] |
| mips | 321.5 kB | 1036 kB | [文件列表] |
| mipsel | 320.9 kB | 1036 kB | [文件列表] |
| powerpc | 318.9 kB | 1000 kB | [文件列表] |
| s390 | 318.6 kB | 996 kB | [文件列表] |
| sparc | 314.5 kB | 992 kB | [文件列表] |