When I started the work on the Mass language I wanted to challenge some of the established practices of writing compilers with one of them being the presence of abstract syntax tree (AST) as intermediary representation for the program. This month I have admitted defeat and introduced something like an AST
. In this post, I want to share some of the details and the reasoning for the switch.
There are two main ways the compilers are written today, both involving an AST. The first, more traditional approach is to have a pipeline with at least
the following steps:
Read More →