wingyplus / tree-sitter-elixir

Tree Sitter grammar for Elixir
MIT License
11 stars 5 forks source link

NOTE: This repository is no longer maintain. Please use https://github.com/elixir-lang/tree-sitter-elixir which's a tree-sitter implementation maintained by Elixir Team.

tree-sitter-elixir

Build Status

Elixir grammar for tree-sitter, you can try it out in the playground.

References

Status

Current status (not mentioned parts are not implemented):

map

struct

bitstring

boolean

number

module_attribute

atom

sigil

module_functions

string

list

module

tuple

Anonymous Functions

variable

keyword_list:

charlist

string_interpolation

operators

for_comprehension

FAQ

Why? Doesn't Elixir ship with a parser?

Tree-sitter aims to be a tool to easily produce a fast, embeddable parser for tools like syntax highlighting in editors, more richer diff analysis in GitHub and code (security) analysers. As LSP is a tool meant to be used by all editors and for all languages, such is Tree-sitter when it comes to parsers.

What's the current status? Is it done yet?

Lots of the syntax has already been done, but there's also lots to be done. In case you want a taste, take it for a spin on the playground

(How) Can I contribute?

I have a different question / would like to chat in private

Feel free to open an issue or post it on Elixir Forum with your question. :)