etch  ] [  etch-m68k  ] [  lenny  ] [  squeeze  ] [  sid  ]
[ 源代码: flex  ]

软件包: flex (2.5.35-6)

A fast lexical analyzer generator.

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.

标签: Software Development: Code Generation, Implemented in: C, User Interface: Command Line, Role: Program, Scope: Utility, Works with: Source Code

其它与 flex 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libc6 (>= 2.7-1) [除 alpha, ia64]
    GNU C 语言运行库:共享库
    同时作为一个虚包由这些包填实: libc6-udeb
  • dep: libc6.1 (>= 2.7-1) [alpha, ia64]
    GNU C 语言运行库:共享库
    同时作为一个虚包由这些包填实: libc6.1-udeb
  • dep: m4
    一种宏处理语言
  • sug: bison
    和 YACC 兼容的语法解析程序生成器

下载 flex

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
alpha 320.6 kB1032 kB [文件列表]
amd64 320.8 kB1004 kB [文件列表]
arm 316.6 kB785 kB [文件列表]
armel 313.4 kB984 kB [文件列表]
hppa 318.8 kB988 kB [文件列表]
i386 306.7 kB776 kB [文件列表]
ia64 352.6 kB1244 kB [文件列表]
mips 321.5 kB1036 kB [文件列表]
mipsel 320.9 kB1036 kB [文件列表]
powerpc 318.9 kB1000 kB [文件列表]
s390 318.6 kB996 kB [文件列表]
sparc 314.5 kB992 kB [文件列表]