#incremental #tree-sitter #parser #yabo

tree-sitter-yabo

yabo grammar for the tree-sitter parsing library

1 unstable release

0.0.1 Jun 25, 2022

#119 in #parsing


Used in yabo

MIT license

130KB
4.5K SLoC

C 4.5K SLoC JavaScript 242 SLoC Rust 31 SLoC // 0.5% comments

tree-sitter grammar for yabo

Used in the compiler itself right now, therefore should always match the implementation.


lib.rs:

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

Dependencies

~2.7–4MB
~75K SLoC