WritingCompilersAndInterpretersPascalJVM.pdf

(7623 KB) Pobierz
Table of Contents
Cover
Title Page
Copyright
Dedication
About the Author
Credits
Acknowledgments
Introduction
What You’ll Learn in this Book
A Software Engineering Approach
How the Book Is Organized
Where to Get the Program Code
Chapter 1: Introduction
Goals and Approach
What Are Compilers and
Interpreters?
Comparing Compilers and
Interpreters
Why Study Compiler Writing?
Conceptual Design
Syntax and Semantics
Lexical, Syntax, and Semantic
Analyses
Chapter 2: Framework I: Compiler and
Interpreter
Goals and Approach
Language-Independent Framework
Components
Parser
Pascal-Specific Front End
Components
Initial Back End Implementations
Program 2: Program Listings
Chapter 3: Scanning
Goals and Approach
Program 3: Pascal Tokenizer
Syntax Error Handling
How to Scan for Tokens
A Pascal Scanner
Pascal Tokens
Chapter 4: The Symbol Table
Goals and Approach
Symbol Table Conceptual Design
Symbol Table Interfaces
A Symbol Table Factory
Symbol Table Implementation
Program 4: Pascal Cross-Referencer
I
Chapter 5: Parsing Expressions and
Assignment Statements
Goals and Approach
Syntax Diagrams
Intermediate Code Conceptual
Design
Intermediate Code Interfaces
An Intermediate Code Factory
Intermediate Code Implementation
Parsing Pascal Statements and
Expressions
Program 5: Pascal Syntax Checker I
Chapter 6: Interpreting Expressions and
Assignment Statements
Goals and Approach
Runtime Error Handling
Executing Assignment Statements
and Expressions
Program 6: Simple Interpreter I
Chapter 7: Parsing Control Statements
Goals and Approach
Syntax Diagrams
Error Recovery
Program 7: Syntax Checker II
Control Statement Parsers
Parsing Pascal Control Statements
Chapter 8: Interpreting Control
Statements
Goals and Approach
Program 8: Simple Interpreter II
Interpreting Control Statements
Chapter 9: Parsing Declarations
Goals and Approach
Pascal Declarations
Types and the Symbol Table
Zgłoś jeśli naruszono regulamin