macOS
brew install cpp-pegliblocal Homebrew formula metadata
sudo port install cpp-peglibMacPorts ports tree · devel/cpp-peglib/Portfile · source: api.github.com
brew
Header-only PEG (Parsing Expression Grammars) library for C++. Version 1.15.0 via Homebrew; verified 2026-07-03.
install
brew install cpp-pegliblocal Homebrew formula metadata
sudo port install cpp-peglibMacPorts ports tree · devel/cpp-peglib/Portfile · source: api.github.com
overview
Header-only PEG (Parsing Expression Grammars) library for C++
history
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.
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.
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.
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.
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.
security posture
library-like 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 |
|---|---|---|---|
peglint | 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://github.com/yhirose/cpp-peglib
install metadata
| Package key | brew:cpp-peglib |
|---|---|
| Version | 1.15.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cpp-peglib |
| Homepage | https://yhirose.github.io/cpp-peglib/ |
| Repository | https://github.com/yhirose/cpp-peglib |
| Upstream docs | https://github.com/yhirose/cpp-peglib#readme |
| License | MIT |
| Source archive | https://github.com/yhirose/cpp-peglib/archive/refs/tags/v1.15.0.tar.gz |
| Last updated | 2026-07-03T00:29:13Z |
| Pulse | updated |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cpp-peglib |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cpp-peglib
sudo port install cpp-peglibsource 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.