tree-sitter-racket

August 22, 2026 ยท View on GitHub

Test Crates.io Version npm Version

Racket parser for tree-sitter.

This grammar only implements the Racket language with the default readtable.

Status

It should be complete and compatible with Racket 9.2.

There are no plans to add support for new language currently.

Versioning

From 0.25.0, this package uses SemVer. Its version number no longer matches the upstream tree-sitter version.

Current tree-sitter dependency: 0.26.12 (ABI 15).

News

0.25.0 (2026-08-22): breaking change to graph

graph no longer has a decimal child.

The old rule used [0-9]+ for the id. That was incorrect. The Racket Reader, 1.3.17, allows only 1-8 decimal digits. A bind (#1=...) is now graph plus the tagged datum. A reference (#1#) is a leaf graph.

Update queries that matched (graph (decimal) ...).

0.3.0 (2023-06-24): external scanner in C

The external scanner was rewritten in C (commit).

Contributing

See CONTRIBUTING.md for setup, the tree-sitter CLI, and the parser workflow.

Usage

See nodes.md for all visible nodes.

Reference

Racket