Ross ROSS = Recommend OSS · open-source software intelligence for agents

yhirose/cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library observed · 2026-08-28

github.com/yhirose/cpp-peglib · homepage · C++ · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

98/100

  • Activity 98
  • Release rhythm 98
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 14
  • age_days: 4225
  • days_rel: 15
  • days_push: 15
  • n_releases_24m: 14

Full methodology

Adoption not part of the score

1057 stars · 128 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A single-file, header-only C++17 library for Parsing Expression Grammars (PEG) with packrat parsing, left recursion support, and AST generation. It includes an online PEG Playground for trying grammars in the browser.

Use cases

  • parse a custom DSL in C++
  • build a small programming language parser
  • write a config file parser with a grammar
  • parse structured text like logs or ini files
  • generate an AST from a grammar
  • prototype parser grammars online

When to choose

  • you need a lightweight, dependency-free parser in a C++17 project
  • you want packrat parsing or left-recursive grammar support
  • you prefer defining grammars as strings rather than code

When to avoid

  • you need a full lexer/parser generator with separate code generation steps
  • you're not on a C++17-capable compiler
  • you need extremely high throughput where hand-written parsers win

Facets

library · maturity active

parser compiler parsers programming-languages developer-tools cpp cross-platform cli header-only peg packrat-parsing left-recursion ast-generation parser-combinator cpp17

2 sources

Member repositories

RepositoryRoleHealth v2
yhirose/cpp-peglibmain98

For agents

markdown · JSON · MCP: product_card(name="yhirose/cpp-peglib")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem