Skip to content
r.

cpp-peglib

yhirose/cpp-peglib · Public GitHub repository

A single file C++ header-only PEG (Parsing Expression Grammars) library

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

cpp-peglib live demo screenshot
Captured from the live demo · 2026-11-01

About this project

Author-written excerpt from the project README.

C++17 header-only PEG (Parsing Expression Grammars) library. You can start using it right away just by including peglib.h in your project.

Since this library only supports C++17 compilers, please make sure that the compiler option -std=c++17 is enabled. (/std:c++17 /Zc:cplusplus for MSVC)

You can also try the online version, PEG Playground at

Requirements and intended audience

C++17 header-only PEG (Parsing Expression Grammars) library. You can start using it right away just by including peglib.h in your project.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-03. Source: https://github.com/yhirose/cpp-peglib/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-10-28. Saved release: v1.20.0 · 2026-10-05. These dates do not guarantee ongoing maintenance.

Technologies
C++
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories