Midjourney generated logo
Rusted Pile is a stack-based programming language compiler written in Rust. It is designed to allow for efficient and concise programming using stack-based operations.
To install Rusted Pile, you will need to have Rust installed on your machine. Once you have Rust installed, you can use Cargo to build and install the compiler:
cargo install rusted_pile
To compile a Rusted Pile program, simply run the rusted_pile command followed by the name of the source file:
rusted_pile my_program.rp
This will compile the my_program.rp file and output the resulting executable file.
Rusted Pile includes a number of stack-based operations, including:
push
: pushes a value onto the stackpop
: removes the top value from the stackdup
: duplicates the top value on the stackswap
: swaps the top two values on the stackadd
: adds the top two values on the stacksub
: subtracts the top two values on the stackmul
: multiplies the top two values on the stackdiv
: divides the top two values on the stack
If you are interested in contributing to Rusted Pile, please feel free to submit a pull request with your changes. We are always looking for new contributors to help improve the language and the compiler.
Rusted Pile is open source and released under the MIT License. See the LICENSE file for more information.