A study guide to compiler design: lexical analysis with regular expressions and finite automata, parsing with LL and LR techniques including FIRST and FOLLOW sets and ambiguity, semantic analysis and symbol tables, intermediate representations including three-address code and SSA, optimisation with dataflow analysis, and code generation with register allocation. Contains two comparative tables, three worked examples, answer technique, five model answers, a checkpoint bank and a glossary.