This project translates custom scripting language code into Rust. It's designed to process specific constructs, including variable declarations, conditional statements, loops, and custom structures, and convert them into equivalent Rust code.
- Parses custom syntax for variable declarations, conditionals, and loops.
- Supports custom data structures like lists and dictionaries.
- Generates Rust code ready for further testing and compilation.
- Rust (latest stable version recommended). Visit The Rust Programming Language website for installation instructions.
-
Clone the repository:
git clone https://github.com/bdr-pro/zigzag.git
-
Navigate to the project directory:
cd zigzag
-
Build the project:
cargo build --release
To use this translator, run the executable with the path to your custom script file:
cargo run -- /path/to/your/custom/script.zz
The translated Rust code will be printed to stdout. Redirect the output to a .rs
file if you wish to save the result:
cargo run -- /path/to/your/custom/script.zz > output.rs
Briefly describe the syntax of your custom scripting language, including key constructs like variable declarations, conditionals, loops, and any unique features.
Provide some basic examples of the custom language syntax and their Rust translations to help users understand how the translation process works.
Contributions are welcome! Please feel free to submit pull requests, report bugs, and suggest features.
Distributed under the MIT License. See LICENSE
for more information.
- List any dependencies, tutorials, or other resources that you found helpful.