# sprache/Sprache

A tiny, friendly, C# parser construction library

Repository: https://github.com/sprache/Sprache
Canonical: https://ross.abutalabs.com/products/sprache
Language: C#
License: MIT
License Family: permissive
Last push: 2024-04-18T18:14:30+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5159, "days_push": 867, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2474, forks 214 (observed 2026-08-28T04:06:54.855974+00:00)

## What it is
Sprache is a tiny, lightweight C# library for building text parsers directly in code using monadic parser combinators and LINQ query syntax. It requires no build-time code generation and sits between regexes and full parser generators like ANTLR.

## Use cases
- parse custom DSLs in C#
- parse configuration or connection strings
- build an expression evaluator
- parse CSV or simple structured text formats
- parse XML-like text into object models
- replace fragile regex parsing with composable parsers

## When to choose
- you need a small parser in .NET without code generation steps
- your grammar is simple to moderate complexity
- you want parsers composed and tested directly in C# code

## When to avoid
- you need maximum parsing performance for large inputs
- you're building a full programming language with complex grammar tooling
- you're not on a .NET platform

## Facets
- artifact type: library
- maturity: stable
- function: parser
- domain: parsers, developer-tools, programming-languages
- platform: dotnet, cross-platform
- tags: parser-combinators, csharp, dsl, monadic-parsing

## Member repositories
- sprache/Sprache (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:54.855974+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-30T02:28:27.118271+00:00, confidence not recorded.
  - readme: https://github.com/sprache/Sprache (fetched 2026-08-28T04:06:54.855974+00:00, sha 4c2fa69137db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
