Limit search to available items
Book Cover
E-book
Author Sestoft, Peter, author

Title Programming language concepts / Peter Sestoft ; with a chapter by Niels Hallenberg
Edition Second edition
Published Cham, Switzerland : Springer, 2017

Copies

Description 1 online resource (xv, 341 pages) : illustrations
Series Undergraduate topics in computer science, 1863-7310
Undergraduate topics in computer science, 1863-7310
Contents Introduction -- Interpreters and Compilers -- From Concrete Syntax to Abstract Syntax -- A First-Order Functional Language -- Higher-Order Functions -- Polymorphic Types -- Imperative Languages -- Compiling Micro-C -- Real-World Abstract Machines -- Garbage Collection -- Continuations -- A Locally Optimizing Compiler -- Compiling Micro-SML -- Real Machine Code -- A Crash Course in F♯
Summary 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. Each chapter has exercises. Programming Language Concepts covers practical construction of lexers and parsers, but not regular expressions, automata and grammars, which are well covered already. It discusses the design and technology of Java and C# to strengthen students' understanding of these widely used languages
Bibliography Includes bibliographical references and index
Notes Online resource; title from PDF title page (SpringerLink, viewed September 11, 2017)
Subject Programming languages (Electronic computers)
Programming languages (Electronic computers)
Form Electronic book
Author Hallenberg, Niels
ISBN 9783319607894
3319607898
331960788X
9783319607887