8 releases

0.3.4 Feb 6, 2025
0.3.3 Dec 9, 2024
0.3.1 Sep 28, 2024
0.2.0 Apr 8, 2024
0.1.0 Mar 14, 2023

#23 in Parser tooling

Download history 2379/week @ 2024-10-30 1829/week @ 2024-11-06 2069/week @ 2024-11-13 2373/week @ 2024-11-20 2660/week @ 2024-11-27 2600/week @ 2024-12-04 3669/week @ 2024-12-11 2518/week @ 2024-12-18 2040/week @ 2024-12-25 2963/week @ 2025-01-01 3896/week @ 2025-01-08 2354/week @ 2025-01-15 3845/week @ 2025-01-22 6974/week @ 2025-01-29 7134/week @ 2025-02-05 6884/week @ 2025-02-12

25,174 downloads per month
Used in 5 crates

Apache-2.0

13MB
430K SLoC

C 429K SLoC // 0.0% comments JavaScript 719 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