💩 Poop Interpretor
This is a simple poop intrepreter written in Rust.
It has 6 basic instructions.
Command | Description |
---|---|
eat | Move pointer to right |
puke | Move pointer to left |
poop | Add pointed character to string |
POOP | Add pointed character to string uppercased |
sniff | Show string |
flush | Empty string and set pointer to 0 |
Supported charactes in Poop 1.0
0123456789abcdefghijklmnopqrstuvwxyz.,-!?+*<>#@$ۤ%&/()[]
There are tests provided in the 'lib' file to test the functionality of the interpreter library.
To run the tests cargo test
Examples for poop files are provided in examples directory.
To run the examples cargo run -- .\example\hello.poop
To build the binary for your platform use the cargo build tools.
cargo build
for development builds. Faster builds for testing the binaries.
cargo build --release
for release build. This takes time to build due to the optimizations performed by the compiler.
poop_rs can run the '.poop' files and even generate a poop source for a given text
-
Interpret poop file
poop_rs.exe hello.poop
The interpretor will run the code in the poop file and print the output to standard output. -
Generate a poop source code
poop_rs.exe -out "Rust"
The '-out' Or '-o' flag is used to specify the code from text.