|
Compiling With C# & Java
Compilers are essential to computer programming. They translate statements made in a particular programming language into low-level machine code which the computer can understand. Compiling with C# and Java is a practical introduction to how this is achieved for stack machines such as the Java Virtual Machine (JVM) and .NET Common Language Runtime
(CLR), and is ideal for students needing an introductory text on compilers or anyone with a general interest in the topic.
Features
* Highly practical approach, with many diagrams, examples and exercises to give the reader a genuine working knowledge of the concepts involved.
* Case studies in C# and Java target the Java Virtual Machine (JVM) and .NET Common Language Runtime (CLR), two of the most contemporary and popular technologies.
* Step-by-step progression, beginning with compiling a simple language subset and adding extra language features as the reader advances.
* Uses Coco/R extensively ?? a versatile tool used in the construction of a wide range of syntax-directed applications.
* Complete source code for all case studies is available on a support website (http://www.booksites.net/terry).
Pat Terry is a Professor in the Department of Computer Science at Rhodes University, South Africa, where he has been awarded the Vice-Chancellor??s award for distinguished teaching.
CONTENTS:
Preface
Acknowledgements
1 Translators and Languages
2 Translator Classification and Structure
3 Compiler Development and Bootstrapping
4 Stack Machines
5 Language Specification
6 Development and Classification of Grammars
7 Deterministic Top-down Parsing
8 Parser and Scanner Construction
9 Syntax-directed Translation
10 Using Coco/R: Overview
11 Using Coco/R: Case Studies
12 A Parva Compiler: the Front End
13 A Parva Compiler: the Back End
14 A Parva Compiler: Functions and Parameters
15 A C#Minor Compiler: the Front End
16 A C#Minor Compiler: the Back End
Appendix A
Appendix B
Appendix C
Appendix D
Bibliography
Index
|