#tree-sitter #parser #pmf #incremental

tree-sitter-pmf

pmf grammar for the tree-sitter parsing library

3 releases

0.0.3 Feb 29, 2024
0.0.2 Feb 11, 2024
0.0.1 Feb 8, 2024

#484 in Text editors

Download history 1/week @ 2024-07-24 5/week @ 2024-09-18 12/week @ 2024-09-25

64 downloads per month

MIT license

36KB
1K SLoC

C 1K SLoC JavaScript 42 SLoC Rust 31 SLoC // 0.5% comments Scheme 6 SLoC

This crate provides pmf 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_pmf::language()).expect("Error loading pmf grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.8–4MB
~76K SLoC