# Installer cpp-peglib avec Homebrew, MacPorts

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cpp-peglib pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:cpp-peglib
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/cpp-peglib>
- **Version:** 1.15.1
- **Résumé source:** Header-only PEG (Parsing Expression Grammars) library for C++
- **Page d'accueil:** <https://yhirose.github.io/cpp-peglib/>
- **Dépôt:** <https://github.com/yhirose/cpp-peglib>
- **Docs amont:** <https://yhirose.github.io/cpp-peglib/>
- **Licence:** MIT
- **Archive source:** <https://github.com/yhirose/cpp-peglib/archive/refs/tags/v1.15.1.tar.gz>
- **Dernière mise à jour:** 2026-07-29T02:59:41Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- peglint (cli)
- peglint (alias)

## Dépendances de compilation

- cmake

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.15.1
- gestionnaire mis à jour: 2026-07-29
- données locales: OK
- dépôt amont: https://github.com/yhirose/cpp-peglib
- dernière version détectée: v1.15.1 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

library-like package without higher-risk signals.

- **Risque Geiger:** vert / faible
- library-like package without higher-risk signals

## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

- 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


## Liens liés

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


## Sources

- 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
