Compiler Construction Build Compiler for KPL (Kyoto Programming Language) by C Steps to build a compiler by yourself: Lexical Analysis Syntax Analysis Semantic Analysis Intermediate code generation (optional) Code optimiser (optional) Code generation