pointlander/peg
Peg, Parsing Expression Grammar, is an implementation of a Packrat parser generator. observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 84
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: 5974
- days_rel: n/a
- days_push: 101
- n_releases_24m: 0
Adoption not part of the score
1116 stars · 123 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Peg is a Packrat parser generator for Parsing Expression Grammars (PEG), written in Go. It compiles .peg grammar files into Go source code via go:generate, supporting backtracking and negative look-ahead beyond regular expressions.
Use cases
- generate a parser from a PEG grammar in Go
- parse a custom DSL or config file format
- build a recursive descent parser with backtracking
- replace regex-based parsing with a real grammar
- integrate grammar-based parsing into a Go build with go:generate
When to choose
- you need a parser in Go with backtracking and look-ahead
- you want grammar definitions compiled to plain Go code
- you prefer Packrat memoization for deterministic parsing
When to avoid
- you need LR/LALR-style parsing or ambiguous grammar support
- you are not working in Go
- you need runtime-modifiable grammars rather than generated code
Facets
cli-tool · maturity active
parser compiler developer-tools parsers programming-languages developer-tools go cli cross-platform parsing-expression-grammar packrat-parser parser-generator code-generation go-generate
1 source
- readme: https://github.com/pointlander/peg · fetched 2026-08-28 · 0a4507ec2ff5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pointlander/peg | main | 70 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem