macOS
brew install cpp-pegliblocal Homebrew formula metadata
sudo port install cpp-peglibMacPorts ports tree · devel/cpp-peglib/Portfile · source: api.github.com
brew / rank 9217
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
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 | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:cpp-peglib |
|---|---|
| Version | 1.15.1 |
| Package manager | Homebrew |
| Homepage | https://yhirose.github.io/cpp-peglib/ |
| Repository | https://github.com/yhirose/cpp-peglib |
| Last updated | 2026-07-29T02:59:41Z |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
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.