2 releases
| 0.24.7 | Oct 8, 2025 |
|---|---|
| 0.24.7-1 | Dec 13, 2025 |
#149 in Text editors
2,427 downloads per month
Used in 2 crates
575KB
17K
SLoC
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
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