# datalust/superpower

A C# parser construction toolkit with high-quality error reporting

Repository: https://github.com/datalust/superpower
Canonical: https://ross.abutalabs.com/products/superpower
Language: C#
License: Apache-2.0
License Family: permissive
Last push: 2026-05-20T05:41:49+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 57, longevity 100
- inputs: {"age_days": 3653, "days_push": 105, "days_rel": 126, "gap_med": 157.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1325, forks 114 (observed 2026-08-28T04:04:22.548835+00:00)

## What it is
Superpower is a C# parser combinator library, based on Sprache, for building declarative text and token-driven parsers embedded directly in your program. It emphasizes fast parsing and precise, friendly error reporting for invalid input.

## Use cases
- parse a custom DSL or configuration format in C#
- build an expression parser with good error messages
- tokenize and parse a small programming language
- parse structured text like log queries or identifiers
- write modular, testable parsers without code generation

## When to choose
- you need a parser embedded in a .NET app with no build-time codegen
- high-quality, token-aware error reporting matters
- you want fast, robust parsing of character or token streams

## When to avoid
- you need a full industrial-strength parser generator with grammar files (e.g. ANTLR)
- you're not working on the .NET platform
- you need parser features like left-recursion handling out of the box

## Facets
- artifact type: library
- maturity: active
- function: parser
- domain: parsers, developer-tools
- platform: dotnet, cross-platform
- tags: parser-combinators, csharp, tokenization, error-reporting, sprache-inspired

## Member repositories
- datalust/superpower (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.548835+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:46:33.898602+00:00, confidence not recorded.
  - readme: https://github.com/datalust/superpower (fetched 2026-08-28T04:04:22.548835+00:00, sha 0884c0340460)
- Data as of 2026-08-30T08:39:29.467469+00:00.
