flex++
fast lexical analyzer generator
Install
- All systems
-
curl cmd.cat/flex++.sh
- Debian
-
apt-get install flex
- Ubuntu
-
apt-get install flex
- Alpine
-
apk add flex
- Arch Linux
-
pacman -S flex
- Kali Linux
-
apt-get install flex
- CentOS
-
yum install flex
- Fedora
-
dnf install flex
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install flex
- OS X
-
brew install flex
- Raspbian
-
apt-get install flex
- Dockerfile
- dockerfile.run/flex++
- Docker
-
docker run cmd.cat/flex++ flex++
powered by Commando
flex
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.
flex-old
Old version of the fast lexical analyzer generator
flex is a tool for generating scanners: programs which recognize lexical patterns in text. This is the old 2.5.4a version, which is no longer being developed. You should normally choose flex, unless you have legacy lexer files that do not work with a modern flex. This product includes software developed by the University of California, Berkeley and its contributors. The upstream source code can be found at http://flex.sourceforge.net/