Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Lancear/tree-sitter-clojure

Clojure grammar for tree-sitter
https://github.com/Lancear/tree-sitter-clojure

clojure grammar parser speedtyper tree-sitter

Last synced: 12 days ago
JSON representation

Clojure grammar for tree-sitter

Lists

README

        

> **Attention:** You probably meant to go to [sogaiu/tree-sitter-clojure](https://github.com/sogaiu/tree-sitter-clojure), the Clojure parser listed in the tree-sitter docs as this repo is incomplete and abandoned.

# tree-sitter-clojure
#### Clojure grammar for tree-sitter

### Currently supported:
- literals (numerical, characters, strings, regexes)
- collections (lists, vectors, sets, maps)
- comments and optional ,
- identifiers (nil, true, false, symbols, and keywords)
- S-expressions
- macros (incl. (syntax) quoting and unquoting (splice) operators)
- anonymous functions
- destructuring (kinda)

### Todo:
- add testcases
- add more semanctic rules for the S-expressions (e.g. let, if, def, ...)
- solve destructuring better
- verify all special symbols, and literals are included
- if possible, limit radix digits to their base