Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » The Scratch compiler
- Oisthebestletter
-
Scratcher
500+ posts
The Scratch compiler
The Scratch compiler can turn many programming languages into goboscript, which can then be turned into Scratch blocks.
It currently supports Java, Kotlin, Scala, Groovy, and C#.
Get it here. All you need is a compatible shell, Git, and a stable Rust toolchain to install it:
A JRE, a compiler of your choice, and goboscript installed to use it for Java:
And a .NET toolchain to use it with C#:
Licensed under the GPL 3.0.
It currently supports Java, Kotlin, Scala, Groovy, and C#.
Get it here. All you need is a compatible shell, Git, and a stable Rust toolchain to install it:
cd /tmp git clone "https://git.hermits.cc/playforge-coding/scratch-compiler.git" cd scratch-compiler cargo install --path crates/cli scratch-compiler --version
A JRE, a compiler of your choice, and goboscript installed to use it for Java:
jscratch build examples/jvm/Hello.java --sb3 Hello.sb3
And a .NET toolchain to use it with C#:
jscratch build examples/cil/Hello.cs --sb3 Hello.sb3
Licensed under the GPL 3.0.
Last edited by Oisthebestletter (Aug. 21, 2026 16:06:53)
- redspacecat
-
Scratcher
1000+ posts
The Scratch compiler
Possibly shouldn't call your compiler the Scratch compiler, as it makes it sound official when it isn't.
- Oisthebestletter
-
Scratcher
500+ posts
The Scratch compiler
Possibly shouldn't call your compiler the Scratch compiler, as it makes it sound official when it isn't.Yeah.. I didn't have a good idea for the name. Suggestions are open!
- Discussion Forums
- » Advanced Topics
-
» The Scratch compiler