Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomboddaert/msc

A 2d, stack-based, esoteric language
https://github.com/tomboddaert/msc

esolang language rust

Last synced: about 2 months ago
JSON representation

A 2d, stack-based, esoteric language

Awesome Lists containing this project

README

        

![The MSC logo](logo.svg)

# MatrixStack-Code
is a 2d, stack-based, esoteric language.

The pointer traverses a plane / matrix of instructions.
Each 4x4 block of instructions corresponds to a stack.

The language spec is in [LANGUAGE.md](LANGUAGE.md).

## Using the interpreter

Programs can be run using their file paths as command line arguments:
```sh
msc
```
This also allows using shebangs on Unix-like systems!

They can be piped in via stdin:
```sh
msc <
```
However, the program will not be able to take inputs!

Or you can write programs straight into it:
```sh
msc
```
Write your program, then press `Enter, Ctrl + D` on Unix-like systems or `Enter, Ctrl + Z` on Windows to run it.
There is no way to save your programs from here, but you can copy them from your terminal!

## Examples

There are example files in the [examples](examples) directory.
Run one with `msc examples/.msc`
or `cargo run examples/.msc`

## Installing with cargo

Make sure you have [cargo](https://rustup.rs/) installed.
```sh
cargo install --git https://github.com/tomboddaert/msc
```

## Building & Installing

Build:
```sh
cargo build --release
```

Local install on Linux:
```sh
# In ~/.local/bin
ln -s $(realpath target/release/msc) ~/.local/bin

# In ~/.bin
ln -s $(realpath target/release/msc) ~/.bin
```

## License

MSCode by Tom Boddaert is licensed under CC BY 4.0