Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts 安装 cpp-peglib

查看 cpp-peglib 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cpp-peglib

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install cpp-peglib

MacPorts ports tree · devel/cpp-peglib/Portfile · 来源: api.github.com

概览

软件包摘要

Header-only PEG (Parsing Expression Grammars) library for C++

命令和别名

  • peglint

历史

项目历史与用法

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.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
peglintcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.15.0
管理器更新时间2026-07-03
本地数据OK
上游当前
检测到的最新版本v1.15.0

https://github.com/yhirose/cpp-peglib

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:cpp-peglib
版本1.15.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cpp-peglib
主页https://yhirose.github.io/cpp-peglib/
仓库https://github.com/yhirose/cpp-peglib
上游文档https://github.com/yhirose/cpp-peglib#readme
许可证MIT
源码归档https://github.com/yhirose/cpp-peglib/archive/refs/tags/v1.15.0.tar.gz
最后更新2026-07-03T00:29:13Z
Pulseupdated
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecpp-peglib
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts95%

cpp-peglib

sudo port install cpp-peglib
  • normalized package name match
  • 匹配方式:Cpp Peglib
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/cpp-peglib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment