dbidwell e272737ea2
All checks were successful
CI/CD Pipeline / test (push) Successful in 32s
CI/CD Pipeline / build (push) Successful in 1m43s
CI/CD Pipeline / release (push) Successful in 5s
Merge pull request 'Fixed const -> let bug' (#10) from declaration_const_as_let into master
Reviewed-on: #10
2025-12-29 02:44:50 -07:00
2025-12-21 16:42:29 -07:00
2025-12-29 02:31:23 -07:00
2025-12-29 02:31:23 -07:00
2025-12-29 02:31:23 -07:00
2025-12-29 02:31:23 -07:00
2025-12-05 03:08:42 -07:00
2025-11-22 20:18:56 -07:00

Slang Language Documentation

Slang is a high-level programming language that compiles to IC10 assembly for Stationeers. It provides a familiar C-like syntax while targeting the limited instruction set of in-game IC10.

Overview

Slang aims to reduce the time spent writing IC10 assembly by providing:

  • Familiar syntax - C-like declarations, control flow, and expressions
  • Device abstraction - Named device bindings with property access
  • Automatic register allocation - No manual register management
  • Built-in functions - Math operations and device I/O as function calls
  • Temperature literals - Native support for Celsius, Fahrenheit, and Kelvin

Example

device gasSensor = "d0";
device airCon = "d1";

const TARGET_TEMP = 20c;

loop {
    yield();
    airCon.On = gasSensor.Temperature > TARGET_TEMP;
}

This compiles to IC10 that monitors temperature and controls an air conditioner.

Project Status

Slang is under active development. It may produce suboptimal code for complex programs. It is not a replacement for IC10, for performance-critical or large scripts, hand-written IC10 may still be preferred.

Description
A WIP language which will transpile into Stationeers IC10 ASM
Readme MIT 2.5 MiB
0.5.1 Latest
2026-01-01 12:41:11 -07:00
Languages
Rust 92.3%
C# 7.4%
Shell 0.3%