Automic VaultAutomic Vault

brew

Install goyacc with Homebrew

Parser Generator for Go. Version 1.0.3 via Homebrew; verified 2026-06-13.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install goyacc

local Homebrew formula metadata

overview

Package summary

Parser Generator for Go

Commands and aliases

  • goyacc

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2014: modernc.org/goyacc public history begins and records the initial release work.
  • 2014: Go 1.4 introduces `go generate`, with goyacc used as a code-generation example.
  • 2015: The modernc.org command adds generated error-message support via examples.
  • 2017: The command adds follow-set reporting.
  • 2018: The project moves its repository root to modernc.org and tags v1.0.0.
  • 2023: v1.0.3 tag updates dependencies.

Related projects

  • golang.org/x/tools/cmd/goyacc is the Go tools implementation in the same yacc-for-Go lineage.
  • Plan 9 yacc and Inferno yacc are earlier implementations named in the Go tools documentation.
  • modernc.org/y and modernc.org/parser/yacc are related modernc parser packages used by the command.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
goyacccliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.0.3
manager updated2026-06-13
local dataok
upstreamnot checked
latest detectednot detected

https://pkg.go.dev/modernc.org/goyacc

install metadata

Package metadata

Package keybrew:goyacc
Version1.0.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/goyacc
Homepagehttps://pkg.go.dev/modernc.org/goyacc
Repositoryhttps://gitlab.com/cznic/goyacc
Upstream docshttps://pkg.go.dev/modernc.org/goyacc
LicenseBSD-3-Clause
Source archivehttps://gitlab.com/cznic/goyacc/-/archive/v1.0.3/goyacc-v1.0.3.tar.bz2
Last updated2026-06-13T23:34:57+02:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegoyacc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment