#tree-sitter #incremental #parser #ic10

tree-sitter-ic10

Tree-sitter grammar for IC10 MIPS used in the game Stationeers

10 releases (6 breaking)

0.6.0 Oct 14, 2024
0.5.2 Sep 24, 2023
0.4.0 Sep 21, 2023
0.3.0 Sep 20, 2023
0.0.2 Mar 26, 2023

#197 in Text editors

Download history 9/week @ 2024-09-21 9/week @ 2024-09-28 1/week @ 2024-10-05 178/week @ 2024-10-12 11/week @ 2024-10-19

565 downloads per month

MIT license

1MB
27K SLoC

C 27K SLoC JavaScript 127 SLoC Rust 31 SLoC // 0.5% comments Scheme 15 SLoC

Tree-sitter IC10

Tree-sitter grammar for IC10 MIPS used in the game Stationeers


lib.rs:

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

Dependencies

~2.7–4MB
~76K SLoC