Programming Language Concepts

Höfundur: Peter Sestoft (Útgáfa: 2)
Programming Language Concepts

Kaup valmöguleikar

This book uses a functional programming language (F#) as a metalanguage to present all concepts and examples, and thus has an operational flavour, enabling practical experiments and exercises. It includes basic concepts such as abstract syntax, interpretation, stack machines, compilation, type checking, garbage collection, and real machine code. Also included are more advanced topics on polymorphic types, type inference using unification, co- and contravariant types, continuations, and backwards code generation with on-the-fly peephole optimization.

This second edition includes two new chapters. One describes compilation and type checking of a full functional language, tying together the previous chapters. The other describes how to compile a C subset to real (x86) hardware, as a smooth extension of the previously presented compilers. The examples present several interpreters and compilers for toy languages, including compilers for a small but usable subset of C, abstract machines, a garbage collector, and ML-style polymorphic type inference.

Nánar um bókina

Útgefandi
Springer Nature
ISBN
9783319607894
Print ISBN
9783319607887
Format
ePub
Útgáfa
2
Höfundar
Peter Sestoft
Tungumál
English
Útgefið
2017-08-31
Prent takmörkun á líftíma
100
Prent takmörkun
2
Afritunar takmörkun
2

Kaflar

  • Cover
  • Frontmatter
  • 1. Introduction
  • 2. Interpreters and Compilers
  • 3. From Concrete Syntax to Abstract Syntax
  • 4. A First-Order Functional Language
  • 5. Higher-Order Functions
  • 6. Polymorphic Types
  • 7. Imperative Languages
  • 8. Compiling Micro-C
  • 9. Real-World Abstract Machines
  • 10. Garbage Collection
  • 11. Continuations
  • 12. A Locally Optimizing Compiler
  • 13. Compiling Micro-SML
  • 14. Real Machine Code
  • Backmatter