6 releases

new 0.3.2 Dec 2, 2024
0.3.1 Sep 28, 2024
0.2.0 Apr 8, 2024
0.1.1 Dec 4, 2023
0.1.0 Mar 14, 2023

#35 in Parser tooling

Download history 2820/week @ 2024-08-12 2377/week @ 2024-08-19 2343/week @ 2024-08-26 2153/week @ 2024-09-02 2008/week @ 2024-09-09 2532/week @ 2024-09-16 2279/week @ 2024-09-23 2042/week @ 2024-09-30 1906/week @ 2024-10-07 2200/week @ 2024-10-14 2364/week @ 2024-10-21 2212/week @ 2024-10-28 2044/week @ 2024-11-04 1950/week @ 2024-11-11 2027/week @ 2024-11-18 2389/week @ 2024-11-25

8,658 downloads per month
Used in 4 crates

Apache-2.0

13MB
429K SLoC

C 428K SLoC // 0.0% comments JavaScript 716 SLoC // 0.1% comments Scheme 188 SLoC // 0.2% comments Rust 37 SLoC // 0.1% comments

tree-sitter-elixir

Test

Elixir grammar for tree-sitter.

Ready for production. Currently used by GitHub itself for source code highlighting and code navigation.

Development

See the docs for more details.


lib.rs:

This crate provides Elixir language support for the tree-sitter parsing library.

Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:

let code = r#"
"#;
let mut parser = tree_sitter::Parser::new();
let language = tree_sitter_elixir::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Elixir parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies