Automic VaultAutomic Vault

brew

Install cpp-peglib with Homebrew, MacPorts

Header-only PEG (Parsing Expression Grammars) library for C++. Version 1.15.0 via Homebrew; verified 2026-07-03.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cpp-peglib

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install cpp-peglib

MacPorts ports tree · devel/cpp-peglib/Portfile · source: api.github.com

overview

Package summary

Header-only PEG (Parsing Expression Grammars) library for C++

Commands and aliases

  • peglint

history

Project history and usage

cpp-peglib is Yuji Hirose's single-header C++ PEG parser library. It packages Parsing Expression Grammar support as a C++17 header-only dependency, with peglint as the command-line tool exposed by the Homebrew formula.

Project history

The public GitHub repository was created in February 2015. Upstream describes the project as a C++17 header-only PEG library that can be used by including peglib.h directly in a project.

The README documents support for packrat parsing, left-recursive grammars, semantic actions, grammar loading, and an online PEG Playground. That positioning makes the project attractive to users who want parser-combinator-like ergonomics without a generated parser build step.

Adoption history

The supplied package facts list Homebrew and MacPorts. Header-only C++ libraries are often consumed directly from source, so package-manager adoption mainly helps users install the header and peglint consistently.

How it is used

cpp-peglib is used to embed PEG grammars into C++ applications, build small DSL parsers, and lint grammar definitions. Upstream examples show calculator grammars, semantic actions, error logging, token boundaries, predicates, and packrat parsing.

Why package nerds care

For package maintainers, cpp-peglib is a tidy example of a header-only C++ library with a useful companion executable. Its C++17 requirement and pthread note for some Linux distributions are the main packaging details.

Timeline

  • 2015: Public GitHub repository created.
  • 2015: Early upstream tags include v0.1.x releases.
  • 2026: Upstream releases include v1.12.0.

Related projects

  • The README links cpp-peglib to Parsing Expression Grammars and packrat parsing literature.
  • PEG Playground is the upstream online demonstration for cpp-peglib.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 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
peglintcliglobal 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.15.0
manager updated2026-07-03
local dataok
upstreamcurrent
latest detectedv1.15.0

https://github.com/yhirose/cpp-peglib

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cpp-peglib
Version1.15.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cpp-peglib
Homepagehttps://yhirose.github.io/cpp-peglib/
Repositoryhttps://github.com/yhirose/cpp-peglib
Upstream docshttps://github.com/yhirose/cpp-peglib#readme
LicenseMIT
Source archivehttps://github.com/yhirose/cpp-peglib/archive/refs/tags/v1.15.0.tar.gz
Last updated2026-07-03T00:29:13Z
Pulseupdated
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

MacPorts95%

cpp-peglib

sudo port install cpp-peglib
  • normalized package name match
  • Matched by: Cpp Peglib
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/cpp-peglib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

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
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment