| Crates.io | scrapile |
| lib.rs | scrapile |
| version | 1.1.1 |
| created_at | 2024-12-18 06:16:28.646808+00 |
| updated_at | 2024-12-19 05:37:48.513793+00 |
| description | A somewhat fully-fleged rust-like programming language that, surprisingly, compiles to scratch |
| homepage | |
| repository | https://github.com/kalscium/scrapile |
| max_upload_size | |
| id | 1487247 |
| size | 293,117 |
A somewhat fully-fleged rust-like programming language that, surprisingly, compiles to scratch
Make sure you have a rust toolchain of your liking installed and then run:
cargo install scrapile
Otherwise, if building it yourself isn't an option (rust toolchain isn't installed).
You can download pre-built binaries for linux-gnu, linux-musl and windows in the releases section and then add it to your PATH environemnt variable.
To compile a scrapile project:
scrapile <source-code>.srpl <output_path>.sb3main { // the program starts executing at the main block
println!("hello, world!"); // 'println' is a builtin function and "hello, world" is it's argument
}
scrapile <source-code>.srpl <output_path>.sb3 to compile the source code..sb3 file to scratch by opening their website, creating a new empty project, opening the file tab and hitting 'Load from your computer'.
Other examples can be found in the examples directory and include:
examples/showcase.srpl which showcases all the language's features.examples/benchmark.srpl) for the language's speedexamples/brainfuck.srpl