14 releases
0.0.14 | Jun 25, 2024 |
---|---|
0.0.13 | Apr 30, 2024 |
0.0.12 | Aug 26, 2022 |
0.0.9 | Feb 14, 2022 |
0.0.7 | Jan 30, 2022 |
#225 in Text editors
828 downloads per month
690KB
30K
SLoC
tree-sitter-clingo
Clingo grammar for tree-sitter
lib.rs
:
This crate provides clingo 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_clingo::language()).expect("Error loading clingo grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.7–4MB
~76K SLoC