Compiler Construction using Flex and Bison
by Anthony A. Aaby
Publisher: Walla Walla College 2004
Number of pages: 102
This is a guide to compiler construction using compiler's compiler tools like Flex and Bison. Using both tools, you can focus on the concept of compiler without the hassle of building a compiler from scratch. Still, you are required to be fluent in C programming in order to use both tools and the generated C code should be compiled using a pure ANSI C compiler like GCC (GNU Compiler Collection).
Download or read it online for free here:
- 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.
by Aarne Ranta
This book follows a theory-based practical approach, where theoretical models serve as blueprint for actual coding. The reader is guided to build compilers and interpreters. The solutions are moreover portable to different implementation languages.
by Charles Donnelly, Richard Stallman - Free Software Foundation
Bison is a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that grammar. You need to be fluent in C or C++ programming in order to use Bison or to understand this manual.
by Richard Bornat - Middlesex University
This book attempts to explain and demystify the principles of compiler writing so that you can go out and build a working compiler of your own. There is enough detail in this book for you to build a compiler for quite a complicated language.