An interpreter for the esoteric programming language Sir. Cut.

Quinn Johnson 3dd4701f23 Add .editorconfig. 4 years ago
src 0d8c37fbe9 Clean up filling of license notices. 4 years ago
tests 0d8c37fbe9 Clean up filling of license notices. 4 years ago
.editorconfig 3dd4701f23 Add .editorconfig. 4 years ago
.gitignore 5ce078fc5b Initial commit. 4 years ago
CHANGELOG.md 5ce078fc5b Initial commit. 4 years ago
COPYING 5ce078fc5b Initial commit. 4 years ago
Cargo.toml 5ce078fc5b Initial commit. 4 years ago
README.md 4600c3e2c1 Remove note about executable from readme. 4 years ago
build.rs 6201fac5ce Mock-up of the command-line interface. 4 years ago

README.md

Sir. Cut Interpreter

This repository contains a Rust implementation of an interpreter for the esoteric programming language Sir. Cut.

Usage

Library

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("\
]@!@!@@!@!@@@@!@@!@@!@!@!@!@!@@!@!@@!@@@!@@!@!@@!@@@!\
@@!@!@@@@!@@!@!@!@@!@@@@!@!@@@@@@!@!@!@!@!@@@!@!@@!@!\
@@@@!@!@@@!@@!@!@@!@@!@!@@!@@@!@@!@@!@!@@@@!@!@@@@!@#");
}

Executable

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

License

The Rust source code in this repository is licensed under the GNU General Public License, version 3 or (at your option) any later version.