# whitequark/parser

A Ruby parser.

Repository: https://github.com/whitequark/parser
Canonical: https://ross.abutalabs.com/products/whitequark-parser
Language: Yacc
License: NOASSERTION
License Family: other
Last push: 2026-07-16T07:55:52+00:00

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

## Adoption (not part of the score)
Stars 1644, forks 204 (observed 2026-08-28T04:05:16.153084+00:00)

## What it is
A production-ready Ruby parser written in pure Ruby that produces ASTs with source maps for Ruby code up to Ruby 3.3. It supports parsing multiple Ruby versions and integrates with tools like unparser for code generation.

## Use cases
- parse ruby source code into an ast
- build a ruby linter or static analysis tool
- get source locations for ruby code nodes
- rewrite or transform ruby code programmatically
- analyze ruby syntax compatibility across versions

## When to choose
- you need to parse Ruby 3.3 or older syntax in pure Ruby
- you need ASTs with precise source maps
- you're building code analysis, refactoring, or linting tools for Ruby

## When to avoid
- you need to parse Ruby 3.4+ syntax (use Prism instead)
- you don't need compatibility with the parser gem AST format

## Facets
- artifact type: library
- maturity: maintenance
- function: parser
- domain: parsers, programming-languages, developer-tools
- platform: ruby
- tags: ruby-parser, ast, source-maps, static-analysis

## Member repositories
- whitequark/parser (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:16.153084+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-30T03:45:57.007046+00:00, confidence not recorded.
  - readme: https://github.com/whitequark/parser (fetched 2026-08-28T04:05:16.153084+00:00, sha 4f951f6e7fe2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
