Skip to main content

Case Study: IMP Expressions

  • Chapter
  • First Online:
Concrete Semantics
  • 973 Accesses

Abstract

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!

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 84.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tobias Nipkow .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Nipkow, T., Klein, G. (2014). Case Study: IMP Expressions. In: Concrete Semantics. Springer, Cham. https://doi.org/10.1007/978-3-319-10542-0_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-10542-0_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-10541-3

  • Online ISBN: 978-3-319-10542-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics