Compiler Writing Series

I’m writing a new programming language called Exoself. I’ll document here how I’m solving various problems I encounter(ed) while creating a compiler for Exoself.

This series begins with a very informal introduction describing how compilers work in principle and which tools I choose for building my compiler. The following posts first discuss the different stages during compilation in a general manner and will discuss several problems a compiler writer has to solve.

Later I’m planning to add detailed posts describing how to implement different syntactical constructs using Exoself as an example language using my tool set.

So far I’ve written the following posts.

  1. Compiler Structure
  2. Compiler construction tools
  3. From source to AST: Lexer and Parser
  4. AST postprocessing / Desugaring
  5. Semantic Analysis
  6. Code Generation
  7. Code Generation 2
  8. Compiler Testing

Leave a comment