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: 3 months ago
JSON representation
Clojure grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/Lancear/tree-sitter-clojure
- Owner: Lancear
- Created: 2021-01-23T17:39:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T09:08:52.000Z (about 2 years ago)
- Last Synced: 2024-08-03T13:03:31.730Z (6 months ago)
- Topics: clojure, grammar, parser, speedtyper, tree-sitter
- Language: C
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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