Ruston is a programming language that compiles to Python. It is designed to provide an easier syntax based on Rust, making it more accessible for developers.
Ruston aims to combine the power and performance of Rust with the simplicity and flexibility of Python. By compiling Ruston code to Python, developers can leverage the extensive Python ecosystem while enjoying the benefits of Rust's syntax and features.
- Easy Syntax: Ruston offers a simplified syntax inspired by Rust, making it easier to write and read code.
- Python Compatibility: Ruston code is compiled to Python, allowing seamless integration with existing Python libraries and frameworks.
- Virtual Machine: Soon, Ruston will have its own virtual machine, providing the possibility to compile it to Python or run it in its own virtual machine.
To get started with Ruston, follow these steps:
- Clone the repository:
git clone https://github.com/time9683/ruston.git - Navigate to the project directory:
cd ruston - Build the project:
cargo build - Run the Ruston compiler:
cargo run -- path/to/your/file.rstn
Here is a simple example of Ruston code:
fn main() {
let message = "Hello, Ruston!";
println(message);
}
This code will be compiled to Python and produce the following output:
def main():
message = "Hello, Ruston!"
print(message)
main()Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.