# cpp-peglib を Homebrew, MacPorts でインストール

cpp-peglib のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

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

  証拠: local Homebrew formula metadata

- MacPorts (94%):

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

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

## パッケージ情報

- **パッケージキー:** brew:cpp-peglib
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.15.1
- **ソース概要:** Header-only PEG (Parsing Expression Grammars) library for C++
- **ホームページ:** <https://yhirose.github.io/cpp-peglib/>
- **リポジトリ:** <https://github.com/yhirose/cpp-peglib>
- **最終更新:** 2026-07-29T02:59:41Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- peglint (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.15.1
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## 他のパッケージマネージャ記録

- 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


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


## ソース

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