- Author: Wikibooks
- Format: online HTML
- Price: free
The purpose of this Wikibook is to provide practical advice on writing a compiler, together with some working examples of both compilers and interpreters. Some theory is unavoidable, but has been kept to a minimum. If you search the Web for “compiler construction” you will find lots of information and many different approaches. All this book can do is demonstrate a few of the many possible ways of constructing a compiler. After going through this book you should be better able to judge other methods.
Chapters include:
- Introduction
- Dealing with Errors
- Case Study 1 – a Simple Interpreter
- Lexical Analysis
- Syntax Analysis
- Semantic Analysis
- Intermediate Representation
- Optimization
- Code Generation
- Run-time Considerations
- Development Environment
- Testing