Case Study: IMP Expressions
The methods of the previous chapter suffice to define the arithmetic and Boolean expressions of the programming language IMP that is the subject of this book. In this chapter we define their syntax and semantics, write little optimizers for them and show how to compile arithmetic expressions to a si...
Saved in:
Published in | Concrete Semantics pp. 27 - 36 |
---|---|
Main Authors | , |
Format | Book Chapter |
Language | English |
Published |
Switzerland
Springer International Publishing AG
2014
Springer International Publishing |
Subjects | |
Online Access | Get full text |
ISBN | 3319105418 9783319105413 |
DOI | 10.1007/978-3-319-10542-0_3 |
Cover
Summary: | The methods of the previous chapter suffice to define the arithmetic and Boolean expressions of the programming language IMP that is the subject of this book. In this chapter we define their syntax and semantics, write little optimizers for them and show how to compile arithmetic expressions to a simple stack machine. Of course we also prove the correctness of the optimizers and compiler! |
---|---|
ISBN: | 3319105418 9783319105413 |
DOI: | 10.1007/978-3-319-10542-0_3 |