macOS
brew install cpp-pegliblocal Homebrew formula metadata
sudo port install cpp-peglibMacPorts ports tree · devel/cpp-peglib/Portfile · 来源: api.github.com
安装
brew install cpp-pegliblocal Homebrew formula metadata
sudo port install cpp-peglibMacPorts ports tree · devel/cpp-peglib/Portfile · 来源: api.github.com
概览
Header-only PEG (Parsing Expression Grammars) library for C++
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
peglint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/yhirose/cpp-peglib
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cpp-peglib
sudo port install cpp-peglib来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.