#parser #incremental #cwscript

tree-sitter-cwscript

CWScript grammar for the tree-sitter parsing library

5 releases

0.0.5 Mar 14, 2022
0.0.4 Mar 13, 2022
0.0.3 Mar 12, 2022
0.0.2 Mar 11, 2022
0.0.1 Mar 11, 2022

#375 in Text editors

MIT license

520KB
19K SLoC

C 18K SLoC JavaScript 429 SLoC // 0.0% comments Rust 31 SLoC // 0.5% comments

This crate provides CWScript 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 = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_cwscript::language()).expect("Error loading CWScript grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.8–4MB
~72K SLoC