#parser #incremental #poweron

tree-sitter-poweron

POWERON grammar for the tree-sitter parsing library

12 stable releases

1.0.12 Sep 8, 2023
1.0.10 Sep 6, 2023
1.0.9 Aug 30, 2023
1.0.1 Jun 11, 2023
0.5.2 Jan 30, 2023

#137 in Text editors

Download history 22/week @ 2024-02-24 9/week @ 2024-03-09 47/week @ 2024-03-30 1/week @ 2024-04-06 245/week @ 2024-04-13

293 downloads per month

MIT license

102MB
1M SLoC

C 1M SLoC JavaScript 3K SLoC // 0.0% comments C++ 153 SLoC Rust 41 SLoC // 0.1% comments Scheme 29 SLoC

@phileagleson/treesitter-poweron

About this project

This is a tree-sitter grammar for the PowerOn Programming Language. While there are still a couple issues it is pretty complete and will parse most poweron files without issues. PR's Welcome.

Screenshot

Neovim Poweron Sreenshon

(The tree-sitter map on the side is created using Nvim Tree-sitter Playground)


lib.rs:

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

Dependencies

~2.7–4MB
~71K SLoC