1 unstable release

0.1.0 Aug 22, 2024

#188 in Text editors

Download history 106/week @ 2024-08-18 9/week @ 2024-08-25

115 downloads per month

Apache-2.0

27KB
754 lines

Tree-Sitter-TBL

Tree-Sitter grammar for the Linux Kernel .tbl augmented TSV format


lib.rs:

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

Dependencies

~2.8–4MB
~73K SLoC