Skip to content
/ ic11 Public

A tool that translates (compiles) a high-level language program to an IC10 assembly for the Stationeers game.

License

Notifications You must be signed in to change notification settings

Raibo/ic11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IC11: Compiler for Stationeers Game IC10 Assembly

A tool that translates (compiles) a high-level language program to an IC10 assembly for the Stationeers game.

The language features a C-like syntax and supports basic instructions, including if/then/else, while loops, function calls, and return values.

Use the Wiki for the ic11 language reference.

Usage in VSCode

Follow instructions in the vscode extension README.

This also works in Cursor. Use the examples for context.

Usage

ic11.exe <path> [-w]
Provide a path to the source code as a first argument.
If the path is a file, then this file will be compiled.
If the path is a directory, then all *.ic11 files in this directory will be compiled.
The optional second argument -w will write compiled code to new *.ic10 files next to the sources.

ic11.exe source.ic11
ic11.exe ./examples
ic11.exe source.ic11 -w
ic11.exe ./examples -w

The compiled code is provided in the Stdout.

Building

Download/update dependencies:

dotnet restore

Build binaries:

dotnet build src/ic11/ic11.csproj -c Release --no-restore

Build a single exe:

dotnet publish src/ic11/ic11.csproj -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -o ./publish

About

A tool that translates (compiles) a high-level language program to an IC10 assembly for the Stationeers game.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •