Tim Buyalski Dev
All projects

2024-2025

Blaze

Compiler of the custom programming language blaze into Minecraft datapacks

Blaze cover art

Compilers have always seemed like magic to me. What do you mean that there's a program that turns text into... into magic?

Well, turns out it's not magic (and actually quite interesting!). I have decided to embark on this journey to solve a problem I was having. To not go into too much detail, datapacks are basically the built-in modding framework Minecraft uses. It allows users to make custom experiences beyond the mechanics the base game offers. However, this framework is a missing some important features.
My solution to this problem was to make a custom high-level programming language and to compile it down to datapacks. Blaze does exactly that.

(Here's a comparison. I think it speaks for itself)

Blaze screenshot

This is the project where I really leveled up my C# skills. It taught me some basic concepts such as a CLI, a REPL (which to this day is called "Repl experience" since I've had no idea what it was), Unit tests, etc. The language itself is a bit like a fuse between C# and JavaScript, although now it's obvious to me that I should have made it procedural. I have studied the C# and TypeScript specifications (which was benefitial in its own right) for research but the design is ultimately not that good. However, it has some cool features like dynamic arrays, new expressions, control flow analysis, namespaces, C-Style enums and more.

Blaze screenshot

Additionally, one can argue that Blaze can be classified as a code analysis tool. The REPL in particular allows you to view the raw tokens, syntax tree or even the entire program representation. For example, you can use the API to make an assembly generator (if for some reason you're not into datapacks, weird).

Shout out to Immo Landwerth. Couldn't have done it without it.