Register
Biscuit Programming Language (BL) » Blog

Compiler internals

Martin Dorazil  — 4 days, 13 hours ago
Original article.
In this blog post I'm going to dig deeper into the compiler architecture an internals of the current version. This article can be helpful for people interested in programming languages and compiler internals but also for potential BL compiler contributors.

Build pipeline

Compilation process is consist of various compilation stages organized in one big pipeline. Every stage basically do some job and pass the result to next stage. Whole process is driven by builder. The builder creates assembly and then unit for every compiled file. Every unit is then passed to compilation process.

We can use simple ...
Read More →


Plans for the next version

Martin Dorazil  — 1 week, 6 days ago
Even if the latest release of BL is closer to the "real" language we still miss lot of features and have lot of bugs to be fixed. Here is the list of things we're going to do next.

Static if statement

This one is really needed. Sometimes we want to include or exclude parts of code depending on various conditions (for example target platform, build type, etc.). Biscuit does not have this concept yet, we're just including whole files with platform depending code during compilation.

Example:
1
2
3
4
5
6
...
WINDOWS :: true;
#if WINDOWS {
    // compile this ...
Read More →