HANDBOOK /

# CASE STUDY

We present a guided tour through the compiler for a simple programming language. We first introduce the source language MiniLAX and the target instruction set ICode. Then we discuss the compiler.

MiniLAX and ICode were designed for classes on compiler construction. They have also been used as a basis for comparing compiler construction kits [13] (The presentations of MiniLAX and ICode were taken from [13]).

- The Source Language
  - Summary of the Language
  - Notation, Terminology, and Vocabulary
  - Data Types
  - Declarations and Denotations of Variables
  - Expressions
  - Statements
  - Input and Output
  - Programs
- The Target Machine
  - The ICode Machine
  - ICode Instructions
- The Compiler
  - Overall Structure
  - Abstract Syntax
  - Concrete Syntax
  - Translating Procedures
  - Translating Statements
  - Translating Expressions
  - Translating Designators
  - Scope Handling
  - Auxiliary Predicates
  - Target Interface