macOS
brew install re2clocal Homebrew formula metadata
sudo port install re2cMacPorts ports tree · devel/re2c/Portfile · 来源: api.github.com
安装
brew install re2clocal Homebrew formula metadata
sudo port install re2cMacPorts ports tree · devel/re2c/Portfile · 来源: api.github.com
sudo apk add re2cAlpine Linux edge package indexes · re2c · 来源: dl-cdn.alpinelinux.org
sudo dnf install re2cFedora Rawhide package metadata · re2c · 来源: dl.fedoraproject.org
nix profile install nixpkgs#re2cnixpkgs package indexes · pkgs/by-name/re/re2c/package.nix · 来源: api.github.com
sudo pacman -S re2cArch Linux sync databases · re2c · 来源: geo.mirror.pkgbuild.com
sudo zypper install re2copenSUSE Tumbleweed package metadata · re2c · 来源: download.opensuse.org
choco install re2cChocolatey community package catalog · re2c · 来源: community.chocolatey.org
概览
Generate C-based recognizers from regular expressions
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
re2c | cli | 全局可执行文件 | |
re2d | cli | 全局可执行文件 | |
re2go | cli | 全局可执行文件 | |
re2hs | cli | 全局可执行文件 | |
re2js | cli | 全局可执行文件 | |
re2ocaml | cli | 全局可执行文件 | |
re2py | cli | 全局可执行文件 | |
re2rust | cli | 全局可执行文件 | |
re2swift | cli | 全局可执行文件 | |
re2v | cli | 全局可执行文件 | |
re2zig | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 re2c来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.