Write You a Haskell: Building a modern functional compiler from first principles
by Stephen Diehl
Publisher: StephenDiehl.com 2015
Number of pages: 246
We will build a small functional language called Fun which is a partial Haskell 2010 toy language; complete with a parser, type inference, datatypes, pattern matching, desugaring, typeclasses, higher-kinded types, monadic IO, arbitrary-rank polymorphism, records, Core language, STG intermediate language, lazy evaluation, interpreter, native code generator, a runtime, and several optimization passes.
Home page url
Download or read it online for free here:
by P.D. Terry - Rhodes University
Designed for computer science students studying for a second year course in compilers/programming language translation, this text manages to combine theory, applications and use of compiler writing tools to give a solid introduction to the subject.
by Seth D. Bergmann - Rowan University
This is an introductory level text for compiler design courses, that emphasizes problem solving skills. The concepts are clearly presented with sampler problems and diagrams to illustrate the concepts. The text also covers lex and yacc.
The purpose of this book is to provide practical advice on writing a compiler, together with some examples of both compilers and interpreters, in order to break away from the concept that building compilers and interpreters are impossible tasks.
by Torben Mogensen - Lulu.com
The book written for use in an introductory compiler course. It is intended to convey the general picture without going into extreme detail. It should give the students an understanding of how compilers work and the ability to make simple compilers.