5 unstable releases

0.3.1 Sep 28, 2024
0.3.0 Sep 6, 2024
0.2.0 Apr 8, 2024
0.1.1 Dec 4, 2023
0.1.0 Mar 14, 2023

#28 in Parser tooling

Download history 2592/week @ 2024-07-30 3369/week @ 2024-08-06 2691/week @ 2024-08-13 2409/week @ 2024-08-20 2115/week @ 2024-08-27 2235/week @ 2024-09-03 2107/week @ 2024-09-10 2427/week @ 2024-09-17 2355/week @ 2024-09-24 1954/week @ 2024-10-01 1896/week @ 2024-10-08 2243/week @ 2024-10-15 2338/week @ 2024-10-22 2317/week @ 2024-10-29 1895/week @ 2024-11-05 1960/week @ 2024-11-12

8,828 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