# cpp-peglib mit Homebrew, MacPorts installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cpp-peglib in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:cpp-peglib
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install cpp-peglib
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cpp-peglib
```

  Evidenz: MacPorts ports tree: devel/cpp-peglib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:cpp-peglib
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/cpp-peglib>
- **Version:** 1.15.1
- **Quellzusammenfassung:** Header-only PEG (Parsing Expression Grammars) library for C++
- **Homepage:** <https://yhirose.github.io/cpp-peglib/>
- **Repository:** <https://github.com/yhirose/cpp-peglib>
- **Upstream-Dokumentation:** <https://yhirose.github.io/cpp-peglib/>
- **Lizenz:** MIT
- **Quellarchiv:** <https://github.com/yhirose/cpp-peglib/archive/refs/tags/v1.15.1.tar.gz>
- **Zuletzt aktualisiert:** 2026-07-29T02:59:41Z
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- peglint (cli)
- peglint (Alias)

## Build-Abhängigkeiten

- cmake

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 1.15.1
- Manager aktualisiert: 2026-07-29
- lokale Daten: OK
- Upstream-Repository: https://github.com/yhirose/cpp-peglib
- neueste erkannte Version: v1.15.1 (aktuell)
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

- <https://api.github.com/repos/yhirose/cpp-peglib>
- <https://raw.githubusercontent.com/yhirose/cpp-peglib/master/README.md>
- <https://api.github.com/repos/yhirose/cpp-peglib/releases?per_page=5>


## Sicherheitshinweise

library-like package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- library-like package without higher-risk signals

## Details aus der Quelldatenbank

- **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:** stable

## Andere Paketmanager-Einträge

- MacPorts - cpp-peglib: normalized package name match | MacPorts ports tree: devel/cpp-peglib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://pkg.so/de/brew/cmake/) - Build dependency declared by Homebrew.
- [libfyaml](https://pkg.so/de/brew/libfyaml/) - Shares pkgdb curated category or tags: cli, developer-tools, parser, parsing.
- [htmlcxx](https://pkg.so/de/brew/htmlcxx/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools, library, parser.
- [md4c](https://pkg.so/de/brew/md4c/) - Shares pkgdb curated category or tags: cli, developer-tools, library, parser.
- [pybind11](https://pkg.so/de/brew/pybind11/) - Shares pkgdb curated category or tags: cli, developer-tools, header-only, library.
- [uriparser](https://pkg.so/de/brew/uriparser/) - Shares pkgdb curated category or tags: cli, developer-tools, library, parser.
- [enchant](https://pkg.so/de/brew/enchant/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools, library.
- [urdfdom](https://pkg.so/de/brew/urdfdom/) - Shares pkgdb curated category or tags: cli, developer-tools, library, parser.
- [log4cpp](https://pkg.so/de/brew/log4cpp/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools, library.

## Combined YAML source

View the package source record on GitHub. [combined/cpp-peglib.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cpp-peglib.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
