Developer(s) | Vern Paxson |
---|---|
Initial release | around 1987[1] |
Stable release | 2.6.4
/ May 6, 2017 |
Repository | |
Operating system | Unix-like |
Type | Lexical analyzer generator |
License | BSD license |
Website | github |
Flex (fast lexical analyzer generator) is a free and open-source software alternative to lex.[2]
It is a computer program that generates lexical analyzers (also known as "scanners" or "lexers").[3][4]
It is frequently used as the lex implementation together with Berkeley Yacc parser generator on BSD-derived operating systems (as both lex
and yacc
are part of POSIX),[5][6][7] or together with GNU bison (a version of yacc) in *BSD ports[8] and in Linux distributions. Unlike Bison, flex is not part of the GNU Project and is not released under the GNU General Public License,[9] although a manual for Flex was produced and published by the Free Software Foundation.[10]
In about 1987, Vern Paxson of the Lawrence Berkeley Lab took a version of lex written in ratfor (an extended Fortran popular at the time) and translated it into C, calling it flex, for 'Fast Lexical Analyzer Generator.'
A freely available version of lex is flex.
This is flex, the fast lexical analyzer generator.
flex(1)
". *BSD man pages.
yacc(1)
". *BSD man pages.