2 stable releases
1.1.0 | Jan 24, 2024 |
---|---|
1.0.0 | Jun 21, 2023 |
#34 in #luau
650KB
25K
SLoC
tree-sitter-luau
Luau grammar for tree-sitter.
Adapted from the syntax spec
lib.rs
:
This crate provides Luau 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_luau::language()).expect("Error loading Luau grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.7–4MB
~76K SLoC