Synopses & Reviews
A practical guide to writing interpreters and compilers. Shows how to write a series of useful utilities, including an interactive debugging interpreter and a working compiler, in a top-down, incremental fashion. Hands-on approach encourages experimentation with these programs on a personal computer. Presentation is independent of operating system and compiler writing system. All the programs are written in the C language. Includes exercises.
Table of Contents
SCANNING AND PARSING.
The Symbol Table.
Parsing Programs, Procedures, and Functions.
An Intermediate Form for Interpretation.
Interpreting Procedures, Functions, and Assignment Statements.
Interpreting Control Statements.
Emitting 8086 Assembly Language Code.
Compiling Procedures, Functions, and Assignment Statements.
Compiling Control Statements.
Advanced Concepts: An Overview.