pkg.soopen package index

brew / rank 9217

Install cpp-peglib with Homebrew, MacPorts

Header-only PEG (Parsing Expression Grammars) library for C++. Version 1.15.1 via Homebrew; verified 2026-07-29. Also installable with macports: sudo port install cpp-peglib.

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 bottle metadata was recorded.

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
peglintexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version1.15.1
manager updated2026-07-29
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cpp-peglib
Version1.15.1
Package managerHomebrew
Homepagehttps://yhirose.github.io/cpp-peglib/
Repositoryhttps://github.com/yhirose/cpp-peglib
Last updated2026-07-29T02:59:41Z
Pulseupdated
Bottlenot recorded
Servicenone declared

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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation