2 releases

0.24.7 Oct 8, 2025
0.24.7-1 Dec 13, 2025

#149 in Text editors

Download history 47/week @ 2025-10-27 16/week @ 2025-11-03 528/week @ 2025-11-10 727/week @ 2025-11-17 903/week @ 2025-11-24 419/week @ 2025-12-01 290/week @ 2025-12-08 626/week @ 2025-12-15 673/week @ 2025-12-22 369/week @ 2025-12-29 568/week @ 2026-01-05 487/week @ 2026-01-12 480/week @ 2026-01-19 782/week @ 2026-01-26 701/week @ 2026-02-02 438/week @ 2026-02-09

2,427 downloads per month
Used in 2 crates

MIT license

575KB
17K SLoC

C 16K SLoC // 0.0% comments JavaScript 487 SLoC // 0.0% comments Scheme 112 SLoC // 0.1% comments Rust 33 SLoC // 0.1% comments

This crate provides Racket language support for the tree-sitter parsing library.

Typically, you will use the [LANGUAGE][] constant to add this language to a tree-sitter Parser, and then use the parser to parse some code:

let code = r#"
"#;
let mut parser = tree_sitter::Parser::new();
let language = tree_sitter_racket::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Racket parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

tree-sitter-racket

Test

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 8.9.

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

News

Starting from June 24, 2023, (commit) or release 0.3.0, the external scanner was written in C.

Build and Try

You need

  • nodejs
  • a C compiler

then run

npm install
npx tree-sitter parse [filename]

Usage

See nodes.md for all visible nodes.

Reference

Racket

Dependencies

~17–250KB