Skip to content

Lancear/tree-sitter-clojure

Repository files navigation

Attention: You probably meant to go to 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

About

Clojure grammar for tree-sitter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages