macOS
brew install re2clocal Homebrew formula metadata
sudo port install re2cMacPorts ports tree · devel/re2c/Portfile · source: api.github.com
brew / rank 1192
Generate C-based recognizers from regular expressions. Version 4.6 via Homebrew; verified 2026-09-18. Also installable with debian: sudo apt install re2c.
install
brew install re2clocal Homebrew formula metadata
sudo port install re2cMacPorts ports tree · devel/re2c/Portfile · source: api.github.com
sudo apk add re2cAlpine Linux edge package indexes · re2c · source: dl-cdn.alpinelinux.org
sudo apt install re2cDebian stable package indexes · re2c · source: deb.debian.org
sudo dnf install re2cFedora Rawhide package metadata · re2c · source: dl.fedoraproject.org
nix profile install nixpkgs#re2cnixpkgs package indexes · pkgs/by-name/re/re2c/package.nix · source: api.github.com
sudo pacman -S re2cArch Linux sync databases · re2c · source: geo.mirror.pkgbuild.com
sudo zypper install re2copenSUSE Tumbleweed package metadata · re2c · source: download.opensuse.org
choco install re2cChocolatey community package catalog · re2c · source: community.chocolatey.org
overview
Generate C-based recognizers from regular expressions
history
re2c is a public-domain lexer generator that converts regular-expression specifications into source-code recognizers.
Peter Bumbulis originally wrote re2c in 1993. A 1994 paper by Bumbulis and Donald Cowan described it as a more versatile scanner generator.
Later contributors developed it into a production-ready code generator and expanded it well beyond its original C-oriented form. The official documentation credits sustained maintenance by a broad volunteer community.
Marcus Boerger and Dan Nuffer spent several years turning the original idea into a production-ready generator. Multiple volunteers subsequently maintained and extended it.
The official site documents packages for numerous operating systems and language-specific front ends for C/C++, D, Go, Haskell, Java, JavaScript, OCaml, Python, Rust, Swift, V, and Zig.
Developers place re2c blocks within source files or reusable specifications and run the appropriate front end during a build. Text outside the blocks is copied through while rules are translated into target-language code.
Typical uses include tokenizers, protocol parsers, and other performance-sensitive recognizers where developers want control over the generated scanner interface.
re2c commonly appears as a build-time dependency in compilers, runtimes, parsers, and build tools. It appeals to systems programmers because it emits source code, imposes no fixed program template, and permits detailed control over buffering and bounds checks.
Generated programs may be distributed freely, which makes re2c convenient for projects that include generated scanners in release artifacts.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
re2c | cli | global executable | |
re2d | cli | global executable | |
re2go | cli | global executable | |
re2hs | cli | global executable | |
re2js | cli | global executable | |
re2ocaml | cli | global executable | |
re2py | cli | global executable | |
re2rust | cli | global executable | |
re2swift | cli | global executable | |
re2v | cli | global executable | |
re2zig | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/skvadrik/re2c
install metadata
| Package key | brew:re2c |
|---|---|
| Version | 4.6 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/re2c |
| Homepage | https://re2c.org/ |
| Repository | https://github.com/skvadrik/re2c |
| Upstream docs | https://re2c.org/ |
| License | LicenseRef-Homebrew-public-domain |
| Source archive | https://github.com/skvadrik/re2c/releases/download/4.6/re2c-4.6.tar.xz |
| Last updated | 2026-09-18T08:06:26+02:00 |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | re2c |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
re2c 4.1-1
lexer generator for C, C++, Go, Java, Python, Rust, and others
sudo apt install re2cre2c
nix profile install nixpkgs#re2cre2c 3.1-1build1
lexer generator for C, C++, Go and Rust
sudo apt install re2cre2c 4.5.1-r0
Lexer generator for C, C++ and Go
sudo apk add re2cre2c-doc 4.5.1-r0
Lexer generator for C, C++ and Go (documentation)
sudo apk add re2c-docre2c 3.1-7.fc45
Tool for generating C, C++, and go recognizers from regular expressions
sudo dnf install re2cre2c 4.5.1-1
A tool for generating C-based recognizers from regular expressions
sudo pacman -S re2cre2c 4.5.1-1.3
Tool for generating C-based recognizers from regular expressions
sudo zypper install re2cre2c
sudo port install re2cre2c
choco install re2csource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.