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

#216 in Parser implementations

Download history 6974/week @ 2025-01-29 7134/week @ 2025-02-05 7648/week @ 2025-02-12 9788/week @ 2025-02-19 10057/week @ 2025-02-26 11730/week @ 2025-03-05 10904/week @ 2025-03-12 9129/week @ 2025-03-19 4893/week @ 2025-03-26 4945/week @ 2025-04-02 6284/week @ 2025-04-09 5306/week @ 2025-04-16 5307/week @ 2025-04-23 5962/week @ 2025-04-30 7000/week @ 2025-05-07 5250/week @ 2025-05-14

24,542 downloads per month
Used in 18 crates (12 directly)

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

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());

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.

Dependencies