tree-sitter-clean
Clean grammar for tree-sitter.
Description
Clean is a general-purpose, purely functional programming language with uniqueness typing. This grammar supports:
- Module system (
module,import,from...import) - Type system (
::, algebraic data types, records, type classes) - Functions (named, guards,
where/withclauses) - Patterns (variables, constructors, wildcards, lists, tuples)
- Expressions (application, infix operators, let, case, lambda)
- Comprehensions (list comprehensions with generators, guards, let qualifiers)
- Records (construction, update, field access)
Node Types
The grammar produces 69 named node types for precise AST analysis, including:
application— function/constructor call detectionfield_access— record field accesslist_comprehension— withgenerator,guard,let_qualifierrecord_expression/record_update— record manipulationwildcard—_pattern
Usage
Rust
let mut parser = tree_sitter::Parser::new();
parser.set_language(&tree_sitter_clean::LANGUAGE.into())?;
JavaScript
const Parser = require("tree-sitter");
const Clean = require("tree-sitter-clean");
const parser = new Parser();
parser.setLanguage(Clean);
Python
import tree_sitter_clean
References
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tree_sitter_clean-1.1.0.tar.gz
(335.3 kB
view details)
File details
Details for the file tree_sitter_clean-1.1.0.tar.gz.
File metadata
- Download URL: tree_sitter_clean-1.1.0.tar.gz
- Upload date:
- Size: 335.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1e8e9803e0170368b26fc0a0d678e4892767c59fb83d4f0bc0ef8763ae9e510
|
|
| MD5 |
b96d2dc02552129a09b951ab0b76aeaa
|
|
| BLAKE2b-256 |
8bdf4810c4ddd374039d40b97de8fd60c9d6790f3da06f2b06b246aa4724d6ec
|