pkg.soopen package index

brew / 排名 1192

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper 安装 re2c

查看 re2c 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install re2c

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install re2c

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add re2c

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

Debian apt已验证 · 92%
sudo apt install re2c

Debian stable package indexes · re2c · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install re2c

Fedora Rawhide package metadata · re2c · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#re2c

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

Arch Linux pacman已验证 · 92%
sudo pacman -S re2c

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

openSUSE zypper已验证 · 92%
sudo zypper install re2c

openSUSE Tumbleweed package metadata · re2c · 来源: download.opensuse.org

概览

软件包摘要

Generate C-based recognizers from regular expressions

命令和别名

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

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 5 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
re2ccli全局可执行文件
re2dcli全局可执行文件
re2gocli全局可执行文件
re2hscli全局可执行文件
re2jscli全局可执行文件
re2ocamlcli全局可执行文件
re2pycli全局可执行文件
re2rustcli全局可执行文件
re2swiftcli全局可执行文件
re2vcli全局可执行文件
re2zigcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本4.6
管理器更新时间2026-09-18
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/skvadrik/re2c

安装元数据

软件包元数据

软件包键brew:re2c
版本4.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/re2c
主页https://re2c.org/
仓库https://github.com/skvadrik/re2c
上游文档https://re2c.org/
许可证LicenseRef-Homebrew-public-domain
源码归档https://github.com/skvadrik/re2c/releases/download/4.6/re2c-4.6.tar.xz
最后更新2026-09-18T08:06:26+02:00
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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'

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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