是什么 ? | : | the fast lexical analyzer generator, is a free implementation of POSIX lex |
开发语言 | : | C |
源码仓库 | : | https://github.com/westes/flex |
操作系统 | 包管理器 | 安装命令 |
---|---|---|
Windows | scoop | scoop install winflexbison |
Windows | Chocolatey | choco install -y winflexbison |
macOS | HomeBrew | brew install flex |
GNU/Linux | HomeBrew | brew install flex |
apt | sudo apt-get install -y flex | |
CentOS | yum | sudo yum install -y flex |
dnf | sudo dnf install -y flex | |
Alpine Linux | apk | sudo apk add flex |
pacman | sudo pacman -Syyu --noconfirm | |
Gentoo Linux | Portage | sudo emerge flex |
flex
是一个词法分析器(Lexical analyzer, Lexer, scanner
)的生成工具(generator
)。
flex
读取.lex
源文件,将其转换为C代码。