Compiler architecture

The compiler is divided in multiple passes, which are executed one after another by the Welder:

There exists another compiler, the json compiler, converting a given code to JSON by iterating through the AST. It follows the same process as the compiler to generate the AST.