#tree-sitter #incremental #parser #ic10

tree-sitter-ic10

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

10 releases (6 breaking)

new 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

#1439 in Parser implementations

Download history 1/week @ 2024-07-27 9/week @ 2024-09-21 9/week @ 2024-09-28 1/week @ 2024-10-05 177/week @ 2024-10-12

196 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
~73K SLoC