foonathan/lexy
C++ parsing DSL observed · 2026-08-28
Health v2 · maintenance only
44/100
- Activity 47
- Release rhythm 8
- Longevity 100
Flags: no_readme
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: n/a
- age_days: 2581
- days_rel: 461
- days_push: 319
- n_releases_24m: 1
Adoption not part of the score
1254 stars · 84 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
lexy is a parser combinator library for C++17 and onwards that lets you define grammars directly in C++ as a DSL. It generates hand-written-style recursive descent parsers with full control over backtracking and lookahead, without external grammar files.
Use cases
- parse structured text formats like IPv4 addresses or config files in C++
- write a DSL or expression parser without a parser generator
- replace hand-written recursive descent parsers with declarative grammar rules
- build a compiler or interpreter front-end in C++
- parse custom file formats with precise control over backtracking and error reporting
When to choose
- you want parser combinator flexibility embedded directly in C++ code
- you need fine-grained control over parsing behavior, backtracking, and lookahead
- you want good error reporting and tracing for grammar debugging
- you prefer no external grammar files or code generation steps
When to avoid
- you need a table-driven parser generator like yacc/ANTLR with automatic ambiguity resolution
- your project targets C++ standards older than C++17
- you need parsing in a language other than C++
Facets
library · maturity active
parser parsers developer-tools programming-languages cpp cross-platform parser-combinators parsing-dsl recursive-descent c++17 header-only
1 source
- homepage: https://lexy.foonathan.net · fetched 2026-08-29 · 7b833e9038f8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| foonathan/lexy | main | 44 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem