Flex

Not Rated
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.
Interface: Command Line
Associated Programs
bison A parser generator that is compatible with YACC
flex-doc Documentation for flex (a fast lexical analyzer generator).
GNU C Compiler The GNU C compiler
Available deb Repositories (how-to add a respository)
Debian 32-bit 64-bit
sarge 2.5.31-31sarge1
etch 2.5.33-11 2.5.33-11
lenny 2.5.35-2
sid 2.5.35-3 2.5.35-3

Ubuntu 32-bit 64-bit
dapper 2.5.31-38ubuntu1 2.5.31-38ubuntu1
feisty 2.5.33-10build1 2.5.33-10build1
gutsy 2.5.33-12build1 2.5.33-12build1
hardy 2.5.34-2.1 2.5.34-2.1
intrepid 2.5.35-2ubuntu1 2.5.35-2ubuntu1

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.
Desc:
File:
You must login or register to upload a screenshot.
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.
Title:
Link:
You must login or register to post links.

Write a Review

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options