An interpreter for the esoteric programming language Sir. Cut.
Quinn Johnson 3dd4701f23 Add .editorconfig. | 4 years ago | |
---|---|---|
src | 4 years ago | |
tests | 4 years ago | |
.editorconfig | 4 years ago | |
.gitignore | 4 years ago | |
CHANGELOG.md | 4 years ago | |
COPYING | 4 years ago | |
Cargo.toml | 4 years ago | |
README.md | 4 years ago | |
build.rs | 4 years ago |
This repository contains a Rust implementation of an interpreter for the esoteric programming language Sir. Cut.
Add this to your Cargo.toml
(note that it isn't functional yet):
[dependencies]
sir-cut-esolang = "0.1"
Then use it like this:
use sir_cut_esolang::Interpreter;
fn main() {
let interpreter = Interpreter::new();
// “Hello, World!” program from <https://esolangs.org/wiki/Sir._Cut#Hello.2C_World.21>.
let output = interpreter::interpret("\
]@!@!@@!@!@@@@!@@!@@!@!@!@!@!@@!@!@@!@@@!@@!@!@@!@@@!\
@@!@!@@@@!@@!@!@!@@!@@@@!@!@@@@@@!@!@!@!@!@@@!@!@@!@!\
@@@@!@!@@@!@@!@!@@!@@!@!@@!@@@!@@!@@!@!@@@@!@!@@@@!@#");
}
Install via Cargo (again, not functional yet):
cargo install sir-cut-esolang
Then use it like this:
echo 'program input' | sircuti --interpret /path/to/the/program
The Rust source code in this repository is licensed under the GNU General Public License, version 3 or (at your option) any later version.