Flex |
||||||||||||||||||||||||||||||||||||
|
Description
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. |
||||||||||||||||||||||||||||||||||||
|
Home Page: http://lex.sourceforge.net/
|
||||||||||||||||||||||||||||||||||||
|
Interface: Command Line
|
||||||||||||||||||||||||||||||||||||
|
Associated Programs
|
||||||||||||||||||||||||||||||||||||
|
Available deb Repositories (how-to add a respository)
|
||||||||||||||||||||||||||||||||||||
|
Available rpm Repositories
|
||||||||||||||||||||||||||||||||||||
|
Rating: Not Rated (0 votes)
Login or Register to rate Flex, add a Tag, or designate as an alternative to a Windows app |
|
|
Upload Screenshots
Images must be in GIF, JPG, or PNG formats and can be no larger than 2 MB. Only one file can be uploaded at a time. A description can be included, but it is optional.
|
|
|
Submit Web Links
Submit the title and link (including http://) to an article pertaining to Flex and it will appear in the Web Links section of the right banner. Contact us here if an entry needs to be removed.
|
|



Recent comments
2 days 18 hours ago
1 week 7 hours ago
1 week 16 hours ago
1 week 22 hours ago
1 week 2 days ago
1 week 2 days ago
1 week 3 days ago
1 week 6 days ago
1 week 6 days ago
2 weeks 1 day ago