by Florian Nöding
Thoughts about testing compilers, specifically how behaviour driven testing is very useful
Code Generation 2
Extending the compiler from the last post with more features
Transforming the AST to generate code using the visitor pattern.
Syntactic correctness is not enough, programs have to be semantically correct. Find out how to teach your compiler.
AST Postprocessing / Desugaring
Some syntactical constructs should be represented by the same AST structure. This article explains how
From Source to AST: Lexer and Parser
Detailed explanation of the compilation steps to go from source code to abstract syntax tree
Compiler construction tools
Description of the tools used to build my toy programming language Exoself
Introduction into the concepts behind compilers: lexing, parsing and code generation