pkg.soopen package index

brew / rank 1192

Install re2c with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper

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

Additional install commands

macOS

Homebrewverified · 100%
brew install re2c

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install re2c

MacPorts ports tree · devel/re2c/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add re2c

Alpine Linux edge package indexes · re2c · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install re2c

Debian stable package indexes · re2c · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install re2c

Fedora Rawhide package metadata · re2c · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#re2c

nixpkgs package indexes · pkgs/by-name/re/re2c/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S re2c

Arch Linux sync databases · re2c · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install re2c

openSUSE Tumbleweed package metadata · re2c · source: download.opensuse.org

overview

Package summary

Generate C-based recognizers from regular expressions

Commands and aliases

  • re2c
  • re2d
  • re2go
  • re2hs
  • re2js
  • re2ocaml
  • re2py
  • re2rust
  • re2swift
  • re2v
  • re2zig

history

Project history and usage

re2c is a public-domain lexer generator that converts regular-expression specifications into source-code recognizers.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1993: Peter Bumbulis wrote the original re2c.
  • 1994: Peter Bumbulis and Donald Cowan published the original re2c paper.
  • 2020: Software Impacts published a modern description of re2c's lookahead-TDFA design.
  • 2026: Official documentation covers version 4.1 and numerous target languages.

Related projects

  • re2c fills the lexer-generator role associated with lex and flex, but emphasizes embeddable specifications, generated source, and a user-defined program interface.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 5 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
re2ccliglobal executable
re2dcliglobal executable
re2gocliglobal executable
re2hscliglobal executable
re2jscliglobal executable
re2ocamlcliglobal executable
re2pycliglobal executable
re2rustcliglobal executable
re2swiftcliglobal executable
re2vcliglobal executable
re2zigcliglobal executable

freshness

Version and 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.

page generated2026-09-19
manager version4.6
manager updated2026-09-18
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/skvadrik/re2c

install metadata

Package metadata

Package keybrew:re2c
Version4.6
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/re2c
Homepagehttps://re2c.org/
Repositoryhttps://github.com/skvadrik/re2c
Upstream docshttps://re2c.org/
LicenseLicenseRef-Homebrew-public-domain
Source archivehttps://github.com/skvadrik/re2c/releases/download/4.6/re2c-4.6.tar.xz
Last updated2026-09-18T08:06:26+02:00
Pulseupdated
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namere2c
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

re2c 4.1-1

lexer generator for C, C++, Go, Java, Python, Rust, and others

https://re2c.org

sudo apt install re2c
  • Section: devel
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Re2c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: re2c from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

re2c

nix profile install nixpkgs#re2c
  • normalized package name match
  • Matched by: Re2c
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/re/re2c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

re2c 3.1-1build1

lexer generator for C, C++, Go and Rust

https://re2c.org

sudo apt install re2c
  • Section: devel
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Re2c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: re2c from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

re2c 4.5.1-r0

Lexer generator for C, C++ and Go

https://re2c.org/

sudo apk add re2c
  • License: Public-Domain
  • Architecture: x86_64
  • Source Package: re2c
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Re2c
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: re2c from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

re2c-doc 4.5.1-r0

Lexer generator for C, C++ and Go (documentation)

https://re2c.org/

sudo apk add re2c-doc
  • License: Public-Domain
  • Architecture: x86_64
  • Source Package: re2c
  • normalized package name match
  • Matched by: Re2c
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: re2c-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

re2c 3.1-7.fc45

Tool for generating C, C++, and go recognizers from regular expressions

https://re2c.org/

sudo dnf install re2c
  • License: LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: re2c
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Re2c
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: re2c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
pacman95%

re2c 4.5.1-1

A tool for generating C-based recognizers from regular expressions

https://re2c.org

sudo pacman -S re2c
  • License: LicenseRef-re2c
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Re2c
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: re2c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

re2c 4.5.1-1.3

Tool for generating C-based recognizers from regular expressions

https://re2c.org/

sudo zypper install re2c
  • License: SUSE-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: re2c
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Re2c
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: re2c from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
MacPorts95%

re2c

sudo port install re2c
  • normalized package name match
  • Matched by: Re2c
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/re2c/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

re2c

choco install re2c
  • normalized package name match
  • Matched by: Re2c
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: re2c from https://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','r.project'

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation