Write You a Haskell: Building a modern functional compiler from first principles
by Stephen Diehl
Publisher: StephenDiehl.com 2015
Number of pages: 246
Description:
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.
Download or read it online for free here:
Read online
(online html)
Similar books
![Book cover: GNU Compiler Collection (GCC) Internals](images/blank.gif)
- Free Software Foundation
This manual documents the internals of the GNU compilers, including how to port them to new targets and some information about how to write front ends for new languages. It corresponds to the compilers (GCC) version 4.4.0.
(11761 views)
![Book cover: Parsing Techniques: A Practical Guide](images/305.jpg)
by Dick Grune, Ceriel J. H. Jacobs - Ellis Horwood Ltd
This book treats parsing in great depth. It offers a clear and thorough discussion of different parsing techniques with their applications, including error recovery techniques. The text covers almost all parsing methods, not just the popular ones.
(17780 views)
![Book cover: Crafting Interpreters: A handbook for making programming languages](images/11350.jpg)
by Robert Nystrom - craftinginterpreters.com
This book contains everything you need to implement a full-featured, efficient scripting language. You'll learn both high-level concepts around parsing and semantics and gritty details like bytecode representation and garbage collection.
(12216 views)
![Book cover: Compiler Construction](images/10771.jpg)
by William M. Waite, Gerhard Goos - Springer
Our intent is to provide the reader with a firm theoretical basis for compiler construction and sound engineering principles for selecting alternate methods, implementing them, and integrating them into a reliable, economically viable product.
(8733 views)