macOS
brew install goyacclocal Homebrew formula metadata
brew
Parser Generator for Go. Version 1.0.3 via Homebrew; verified 2026-06-13.
install
brew install goyacclocal Homebrew formula metadata
overview
Parser Generator for Go
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
goyacc | cli | global executable |
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.
https://pkg.go.dev/modernc.org/goyacc
install metadata
| Package key | brew:goyacc |
|---|---|
| Version | 1.0.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/goyacc |
| Homepage | https://pkg.go.dev/modernc.org/goyacc |
| Repository | https://gitlab.com/cznic/goyacc |
| Upstream docs | https://pkg.go.dev/modernc.org/goyacc |
| License | BSD-3-Clause |
| Source archive | https://gitlab.com/cznic/goyacc/-/archive/v1.0.3/goyacc-v1.0.3.tar.bz2 |
| Last updated | 2026-06-13T23:34:57+02:00 |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.