macOS
brew install byacclocal Homebrew formula metadata
sudo port install byaccMacPorts ports tree · devel/byacc/Portfile · 来源: api.github.com
安装
brew install byacclocal Homebrew formula metadata
sudo port install byaccMacPorts ports tree · devel/byacc/Portfile · 来源: api.github.com
sudo apk add byaccAlpine Linux edge package indexes · byacc · 来源: dl-cdn.alpinelinux.org
sudo dnf install byaccFedora Rawhide package metadata · byacc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#byaccnixpkgs package indexes · pkgs/by-name/by/byacc/package.nix · 来源: api.github.com
sudo pacman -S byaccArch Linux sync databases · byacc · 来源: geo.mirror.pkgbuild.com
sudo zypper install byaccopenSUSE Tumbleweed package metadata · byacc · 来源: download.opensuse.org
scoop install main/byaccScoop official bucket manifest trees · bucket/byacc.json · 来源: api.github.com
概览
(Arguably) the best yacc variant
历史
Berkeley Yacc, usually packaged as byacc, is a public-domain yacc-compatible LALR(1) parser generator. It is valued as a small, portable yacc implementation that avoids the heavier dependencies and dialect assumptions of some alternatives.
Thomas E. Dickey's official BYACC page says Robert Corbett wrote byacc around 1990 and notes Corbett was also the original author of bison. The page cites its compatibility with original yacc and records that Dickey later converted the original K&R C source to ANSI C and continued maintaining it.
The original README, preserved in the maintained source tree, states that Berkeley Yacc accepts input conforming to AT&T yacc documentation, is distributed in the public domain, and allows generated parsers to be distributed freely.
BYACC became popular because it was fast, BSD/public-domain-friendly, and yacc-compatible. The official page quotes John Levine's later account that Corbett's implementation was faster than AT&T yacc and quickly became the most popular yacc variant.
The official related-links section points to Debian packages, FreeBSD and NetBSD sources or package collections, and notes that FreeBSD imported this maintained version into its vendor tree in 2012. The supplied package facts show broad packaging across Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Pacman, Scoop, Ubuntu, and zypper.
byacc is used as a yacc replacement in build systems and compiler-toolchain work: it reads a grammar and emits C parser source. It is often chosen when projects want yacc compatibility, small generated output, permissive/public-domain licensing, and portability to non-GCC or older C environments.
byacc is package-nerd significant because it is one of the classic parser generators that still matters in modern ports trees. It is tiny but strategically important: swapping yacc implementations can change generated C, expose build assumptions, or avoid a dependency on GNU bison.
Its public-domain status and generated-parser licensing are part of why it persists in base systems, embedded build environments, and conservative packaging stacks.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
byacc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://invisible-island.net/byacc/
安装元数据
| 软件包键 | brew:byacc |
|---|---|
| 版本 | 20260126 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/byacc |
| 主页 | https://invisible-island.net/byacc/ |
| 上游文档 | https://invisible-island.net/byacc |
| 许可证 | LicenseRef-Homebrew-public-domain |
| 源码归档 | https://invisible-mirror.net/archives/byacc/byacc-20260126.tgz |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | byacc |
| 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 软件包链接分开显示。
byacc 1:2.0.20241231-1
public domain Berkeley LALR Yacc parser generator
https://invisible-island.net/byacc/
sudo apt install byaccbyacc
nix profile install nixpkgs#byaccbyacc 1:2.0.20221106-1
public domain Berkeley LALR Yacc parser generator
https://invisible-island.net/byacc/
sudo apt install byaccbyacc 20260126-r0
The Berkeley Yacc general-purpose parser generator
https://invisible-island.net/byacc/byacc.html
sudo apk add byaccbyacc-doc 20260126-r0
The Berkeley Yacc general-purpose parser generator (documentation)
https://invisible-island.net/byacc/byacc.html
sudo apk add byacc-docbyacc 2.0.20241231-3.fc44
Berkeley Yacc, a parser generator
http://invisible-island.net/byacc/byacc.html
sudo dnf install byaccbyacc 20260126-1
Berkeley reimplementation of the Unix parser generator Yacc
https://invisible-island.net/byacc/
sudo pacman -S byaccbyacc 20260126-1.1
LALR(1) parser generator
https://invisible-island.net/byacc/byacc.html
sudo zypper install byaccbyacc
sudo port install byaccmain/byacc
scoop install main/byacc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.