flex
brew install flexFast Lexical Analyzer, generates Scanners (tokenizers)
https://github.com/westes/flex
License: BSD-2-Clause
Development: Pull requests
Formula JSON API: /api/formula/flex.json
Formula code: flex.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.6.16 |
| head | ⚡️ | HEAD |
Keg-only because macOS already provides this software.
Depends on:
| gettext | 1.0 | GNU internationalization (i18n) and localization (l10n) library |
Depends on when building from source:
| help2man | 1.49.3 | Automatically generate simple man pages |
Uses from macOS: bison (build), m4
Requires: macOS
Binaries:
flex,
flex++,
lex
GitHub Packages downloads:
| Last 30 days | 126,165 |
|---|---|
| Downloads | 4,022,672 |
| Analytics install events (30 days) | 4,683 |
| Downloads / install events (30 days) | 26.9× |
Source: GitHub Packages, fetched 2026-11-17T00:55:54Z. Analytics dates: 2026-10-18 to 2026-11-17. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 4,679 | 8,218 | 35,480 |
Installs (--HEAD) | 4 | 5 | 21 |
| Installs on Request | 3,101 | 4,811 | 18,852 |
Installs on Request (--HEAD) | 4 | 5 | 21 |
| Build Errors | 0 |