macOS
brew install goyacclocal Homebrew formula metadata
安装
brew install goyacclocal Homebrew formula metadata
概览
Parser Generator for Go
历史
modernc.org/goyacc is Jan Mercl's Go parser-generator command derived from the Go toolchain's goyacc lineage. It reads yacc grammars and emits Go parsers, while adding compatibility and diagnostics features beyond the older `go tool yacc` style.
The modernc.org implementation begins in public history in November 2014. Its source comments state that it uses portions of code previously published in the Go tool `yacc` program, while the Go tools documentation describes that upstream goyacc as largely transliterated from Inferno's Limbo version, itself largely transliterated from the Plan 9 C version.
The project moved its import path and repository root to modernc.org in 2018, and pkg.go.dev records `gitlab.com/cznic/goyacc` as the repository for the modernc.org module.
goyacc is part of a long Unix parser-generator tradition adapted for Go. The Go project used goyacc as an example in the Go 1.4 `go generate` announcement, showing how generated parsers fit into Go package maintenance even though generation is run explicitly by package authors.
The command accepts a yacc input file or standard input and writes a Go parser, defaulting to `y.go`, with options for the symbol prefix, parser report output, follow sets, conflict explanations, and generated error examples. Generated parsers use a Go lexer interface instead of C yacc globals.
For package maintainers, goyacc is a compact bridge between old compiler-construction workflows and Go modules: grammars can live beside Go source, generation can be driven by `go generate`, and the installed binary is small enough to package directly in Homebrew.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
goyacc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://pkg.go.dev/modernc.org/goyacc
安装元数据
| 软件包键 | brew:goyacc |
|---|---|
| 版本 | 1.0.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/goyacc |
| 主页 | https://pkg.go.dev/modernc.org/goyacc |
| 仓库 | https://gitlab.com/cznic/goyacc |
| 上游文档 | https://pkg.go.dev/modernc.org/goyacc |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://gitlab.com/cznic/goyacc/-/archive/v1.0.3/goyacc-v1.0.3.tar.bz2 |
| 最后更新 | 2026-06-13T23:34:57+02:00 |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | goyacc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.