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

#2940 in Parser implementations

Download history 60/week @ 2025-03-02 461/week @ 2025-03-09 552/week @ 2025-03-16 247/week @ 2025-03-23 540/week @ 2025-03-30 1189/week @ 2025-04-06 3805/week @ 2025-04-13 1512/week @ 2025-04-20 781/week @ 2025-04-27 130/week @ 2025-05-04 140/week @ 2025-05-11 521/week @ 2025-05-18

828 downloads per month

MIT license

690KB
30K SLoC

C 29K SLoC JavaScript 751 SLoC // 0.0% comments Rust 33 SLoC // 0.4% comments

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();

tree-sitter-clingo Build Status Latest Version Rust Documentation

Clingo grammar for tree-sitter

Dependencies

~2.7–4MB
~74K SLoC