Skip to content

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.

Notifications You must be signed in to change notification settings

pile-lang/rusted-pile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusted Pile Compiler

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.

Installation

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

Usage

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.

Language Features

Rusted Pile includes a number of stack-based operations, including:

  • push: pushes a value onto the stack
  • pop: removes the top value from the stack
  • dup: duplicates the top value on the stack
  • swap: swaps the top two values on the stack
  • add: adds the top two values on the stack
  • sub: subtracts the top two values on the stack
  • mul: multiplies the top two values on the stack
  • div: divides the top two values on the stack

Contributing

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.

License

Rusted Pile is open source and released under the MIT License. See the LICENSE file for more information.

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages