Crates.io | quickscript |
lib.rs | quickscript |
version | 0.5.5 |
source | src |
created_at | 2023-11-19 12:19:32.087053 |
updated_at | 2023-11-19 13:02:50.129212 |
description | A quick programming language with a compiler implemented in Rust. |
homepage | |
repository | https://github.com/RedstoneWizard08/QuickScript |
max_upload_size | |
id | 1041135 |
size | 110,721 |
QuickScript is a language that I am creating to learn how to, well, create a language. The syntax is very similar to Rust, and it is a semicolon-based language, or at least it will be (I think). The compiler is written in Rust, and will translate into Assembly, which will then be compiled with either nasm or GNU as (probably the latter), and then linked with ld (I think I might use mold for it actually) internally. The standard library should hopefully be pretty good, but I haven't gotten around to that yet.
This project is licensed under the MIT license. Feel free to use the code for whatever you want.
Installing QuickScript is incredibly easy! Here's how you can do it:
With Cargo:
cargo install quickscript
Via GitHub Releases:
chmod +x [path to binary here]
For usage details, run qsc --help
Currently, here is the support matrix:
Version | i686 | x86_64 | armv7l | armhf | arm64 |
---|---|---|---|---|---|
0.0.0 | 🔴 | 🔴 | 🔴 | 🔴 | 🟢 |
0.1.0 | 🔴 | 🟡 | 🔴 | 🔴 | 🟢 |
0.3.0 | 🟢 | 🟢 | 🔴 | 🔴 | 🟢 |
0.4.0 | 🟢 | 🟢 | 🔴 | 🔴 | 🟢 |
0.5.x | 🟢 | 🟢 | 🔴 | 🔴 | 🟢 |
Note that armv7l and armhf support is dependent on Cranelift's support for it. See cranelift#1173 for more details.
Musl builds for i686 are also not supported due to a big in cargo zigbuild. See cargo-zigbuild#96 for more details.
Huge thanks to Pixeled (@orosmatthew) and his Creating a Compiler series, as it helped me think about how to do this best and it gave me the inspiration for this project.
Another huge thanks for the cranelift-jit-demo, as it helped me implement the code generator with Cranelift.