tree-sitter-awatalk

Awatalk grammar for tree-sitter

2 releases

0.1.1 Jul 30, 2024
0.1.0 Jul 26, 2024

#434 in Text editors

48 downloads per month

MIT license

38KB
1.5K SLoC

C 1K SLoC JavaScript 94 SLoC // 0.1% comments Rust 29 SLoC // 0.3% comments Scheme 4 SLoC // 0.5% comments

tree-sitter-awatalk

Awatalk grammar for tree-sitter


lib.rs:

This crate provides Awatalk 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();
parser.set_language(&tree_sitter_awatalk::language()).expect("Error loading Awatalk grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies

~2.8–4MB
~76K SLoC