6cdh/tree-sitter-racket

Racket parser for tree-sitter

37

stars

134

commits

Tree-sitter Query

primary language

Aug 22, 2026

updated

racket
tree-sitter

README

tree-sitter-racket

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

Contributors

6cdh

127 commits

amaanq

2 commits

maxbrunsfeld

2 commits

ADSteele916

1 commits

6cdh/tree-sitter-racket

Racket parser for tree-sitter

37

stars

134

commits

Tree-sitter Query

primary language

Aug 22, 2026

updated

racket
tree-sitter

README

tree-sitter-racket

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

Contributors

6cdh

127 commits

amaanq

2 commits

maxbrunsfeld

2 commits

ADSteele916

1 commits

Languages

Tree-sitter Query

62.3%

JavaScript

17.6%

Racket

10.3%

C

6.1%

CMake

3.5%