7 releases

0.3.3 Dec 9, 2024
0.3.2 Dec 2, 2024
0.3.1 Sep 28, 2024
0.2.0 Apr 8, 2024
0.1.0 Mar 14, 2023

#29 in Parser tooling

Download history 2285/week @ 2024-09-19 2212/week @ 2024-09-26 1943/week @ 2024-10-03 1847/week @ 2024-10-10 2410/week @ 2024-10-17 2225/week @ 2024-10-24 2396/week @ 2024-10-31 1847/week @ 2024-11-07 1959/week @ 2024-11-14 2440/week @ 2024-11-21 2662/week @ 2024-11-28 2775/week @ 2024-12-05 3712/week @ 2024-12-12 2122/week @ 2024-12-19 2068/week @ 2024-12-26 3301/week @ 2025-01-02

11,787 downloads per month
Used in 4 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