#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

#266 in Text editors

Download history 17/week @ 2024-02-19 177/week @ 2024-02-26 7/week @ 2024-03-04 8/week @ 2024-03-11 45/week @ 2024-04-01

54 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.7–4MB
~71K SLoC