1 unstable release
Uses new Rust 2024
| 0.1.0 | Jul 7, 2025 |
|---|
#8 in #clojure
13,247 downloads per month
Used in 18 crates
(6 directly)
1MB
26K
SLoC
This crate provides Clojure 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:
use tree_sitter::Parser;
let code = r#"
(defn double [x] (* x 2))
"#;
let mut parser = Parser::new();
let language = tree_sitter_clojure::LANGUAGE;
parser
.set_language(&language.into())
.expect("Error loading Clojure parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());
tree-sitter-clojure
This repository contains a grammar for the Clojure language for Tree-sitter.
More specifically, it is the grammar from the tree-sitter-clojure repository.
This repo exists to maintain Clojure support for Harper.
Feel free to use this package however you want.
Dependencies
~2.6–4MB
~77K SLoC