Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tomboddaert/msc
- Owner: tomBoddaert
- Created: 2023-02-19T01:00:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T01:25:42.000Z (9 months ago)
- Last Synced: 2024-03-30T02:24:38.870Z (9 months ago)
- Topics: esolang, language, rust
- Language: Rust
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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