#parser #incremental #ic10

tree-sitter-ic10

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

9 releases (5 breaking)

0.5.2 Sep 24, 2023
0.5.1 Sep 22, 2023
0.4.0 Sep 21, 2023
0.3.0 Sep 20, 2023
0.0.2 Mar 26, 2023

#167 in Text editors

Download history 10/week @ 2024-02-25 8/week @ 2024-03-10 1/week @ 2024-03-17 17/week @ 2024-03-31 79/week @ 2024-04-14

96 downloads per month

MIT license

225KB
8K SLoC

C 7.5K SLoC JavaScript 433 SLoC Rust 31 SLoC // 0.5% comments Scheme 10 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
~71K SLoC