#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

#171 in Text editors

Download history 1/week @ 2024-07-30 13/week @ 2024-09-24 6/week @ 2024-10-01 78/week @ 2024-10-08 110/week @ 2024-10-15 1/week @ 2024-10-22

189 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.8–4MB
~76K SLoC