flex
Lexical analyzer generator. Based on lex. Given the specification for a lexical analyzer, generates C code implementing it. More information: <https://manned.org/flex>.
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
Lexical analyzer generator. Based on lex. Given the specification for a lexical analyzer, generates C code implementing it. More information: <https://manned.org/flex>.
-
Generate an analyzer from a flex file:
flex analyzer.l
-
Specify the output file:
flex --outfile analyzer.c analyzer.l
-
Compile a C file generated by flex:
cc path/to/lex.yy.c --output executable
© tl;dr; authors and contributors