kevinmehall/rust-peg
Parsing Expression Grammar (PEG) parser generator for Rust observed · 2026-10-19
Health v2 · maintenance only
67/100
- Activity 72
- Release rhythm 43
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 428
- age_days: 4811
- days_rel: 169
- days_push: 169
- n_releases_24m: 2
Adoption not part of the score
1604 stars · 118 forks observed · 2026-10-19
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
rust-peg is a Parsing Expression Grammar (PEG) parser generator for Rust, provided as a proc macro that builds a recursive descent parser from a grammar definition. It supports parsing &str, &[u8], &[T], and custom input types, with precedence climbing, parameterized rules, and customizable error reporting.
Use cases
- write a parser for a custom DSL in Rust
- parse structured text like config or data formats
- build an expression parser with operator precedence
- parse token sequences or byte arrays
- generate a recursive descent parser from a grammar
When to choose
- you want grammar and action code together in one Rust macro
- you need precedence climbing for infix/prefix/postfix expressions
- you want parameterized rules and custom input types
- you prefer PEG semantics over LR or combinator parsing
When to avoid
- you need streaming input
- you want grammar definitions in separate files like pest
- you need LR(1) parsing power for ambiguous grammars
- you're parsing binary data with combinators and nom fits better
Facets
library · maturity stable
parser compiler parsers programming-languages developer-tools rust peg parser-generator proc-macro recursive-descent grammar
1 source
- readme: https://github.com/kevinmehall/rust-peg · fetched 2026-10-19 · 7e81e63ceeb4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kevinmehall/rust-peg | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="kevinmehall/rust-peg")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem