| Crates.io | XLang-Rust |
| lib.rs | XLang-Rust |
| version | 0.2.0 |
| created_at | 2025-04-22 10:57:19.012148+00 |
| updated_at | 2025-05-12 06:22:22.598157+00 |
| description | An experimental cross-platform dynamic strong-typed programming language written in Rust. |
| homepage | |
| repository | https://github.com/sjrsjz/XLang-Rust |
| max_upload_size | |
| id | 1643894 |
| size | 1,024,103 |
XLang-Rust is a Rust implementation of the XLang programming language, designed to provide a cross-platform, experimental, dynamically strong-typed programming environment. It executes scripts through a virtual machine and offers a unique set of language features.
async/await for managing tasks that interleave execution on a single thread (note: behavior differs from traditional suspendable/resumable coroutines).boundary/raise to implement non-local jumps more powerful than return.bind keyword.::.repl), compiler (compile to .xir or .xbc), runner (run), IR viewer (display-ir), bytecode translator (translate), and LSP server (lsp).XLang-Rust is currently in an experimental phase. Its design incorporates some unique concepts and behaviors that may differ from other mainstream languages. Feedback and experimentation are welcome.
Assuming the compiler executable is named xlang-rust:
Run a Script File:
xlang-rust run your_script.x
You can also run intermediate code (.xir) or bytecode (.xbc) files.
Compile to Bytecode:
xlang-rust compile your_script.x -b -o your_script.xbc
(-b indicates compiling to bytecode, -o specifies the output file)
Start the REPL:
xlang-rust repl
For detailed language specifications and feature introductions, please refer to: Language Documentation