Programming Language Pragmatics
Kaup valmöguleikar
Programming Language Pragmatics is the most comprehensive programming language textbook available today, with nearly 1000 pages of content in the book, plus hundreds more pages of reference materials and ancillaries online. Michael Scott takes theperspective that language design and language implementation are tightly interconnected, and that neither can be fully understood in isolation. In an approachable, readable style, he discusses more than 50 languages in the context of understanding how code isinterpreted or compiled, providing an organizational framework for learning new languages, regardless of platform.
This edition has been thoroughly updated to cover the most recent developments in programming language design and provides both a solid understanding of the most important issues driving software development todayProvides a complete re-write of the chapter on semantic analysis, using formal inference rules Includes a heavy revision of the chapter on type systemsPresents significant updates to the chapters on composite types, object orientation, and code generationCovers new material on ownership types, safe concurrency, asynchronous programming, traits, move constructors, template “concepts,” the LLVM compiler infrastructure, and many other topics
Nánar um bókina
- Elsevier S & T
- 9780323984232
- 9780323999663
- ePub
- 5
- Michael Scott; Jonathan Aldrich
- English
- 2025-01-09
- 10
Kaflar
- Title of Book
- Cover image
- Title page
- Table of Contents
- Copyright
- Dedication
- About the Authors
- Preface
- Changes in the Fifth Edition
- How to Use the Book
- Supplemental Materials
- Acknowledgments for the Fifth Edition
- Part I: Foundations
- Introduction
- Abstract
- 1.1 The Art of Language Design
- 1.2 The Programming Language Spectrum
- 1.3 Why Study Programming Languages?
- 1.4 Compilation and Interpretation
- 1.5 Programming Environments
- 1.6 An Overview of Compilation
- 1.7 Summary and Concluding Remarks
- 1.8 Exercises
- 1.9 Explorations
- 1.10 Bibliographic Notes
- Bibliography
- Programming Language Syntax
- Abstract
- 2.1 Specifying Syntax: Regular Expressions and Context-Free Grammars
- 2.2 Scanning
- 2.3 Parsing
- 2.4 Theoretical Foundations
- 2.5 Summary and Concluding Remarks
- 2.6 Exercises
- 2.7 Explorations
- 2.8 Bibliographic Notes
- Bibliography
- Names, Scopes, and Bindings
- Abstract
- 3.1 The Notion of Binding Time
- 3.2 Object Lifetime and Storage Management
- 3.3 Scope Rules
- 3.4 Implementing Scope
- 3.5 The Meaning of Names within a Scope
- 3.6 The Binding of Referencing Environments
- 3.7 Macro Expansion
- 3.8 Separate Compilation
- 3.9 Summary and Concluding Remarks
- 3.10 Exercises
- 3.11 Explorations
- 3.12 Bibliographic Notes
- Bibliography
- Program Semantics
- Abstract
- 4.1 Abstract Syntax Trees
- 4.2 Constructing ASTs with Action Routines
- 4.3 Dynamic Semantics
- 4.4 Static Semantics and Semantic Analysis
- 4.5 Semantic Properties of Languages: Soundness
- 4.6 Attribute Grammars
- 4.7 Summary and Concluding Remarks
- 4.8 Exercises
- 4.9 Explorations
- 4.10 Bibliographic Notes
- Bibliography
- Target Machine Architecture
- Abstract
- Part II: Core Issues in Language Design
- Control Flow
- Abstract
- 6.1 Expression Evaluation
- 6.2 Structured and Unstructured Flow
- 6.3 Sequencing
- 6.4 Selection
- 6.5 Iteration
- 6.6 Recursion
- 6.7 Nondeterminacy
- 6.8 Summary and Concluding Remarks
- 6.9 Exercises
- 6.10 Explorations
- 6.11 Bibliographic Notes
- Bibliography
- Type Systems
- Abstract
- 7.1 Overview
- 7.2 Type Checking
- 7.3 Generic Subroutines and Classes
- 7.4 Implicit Parametric Polymorphism in ML
- 7.5 Equality Testing and Assignment
- 7.6 Summary and Concluding Remarks
- 7.7 Exercises
- 7.8 Explorations
- 7.9 Bibliographic Notes
- Bibliography
- Composite Types
- Abstract
- 8.1 Records (Structures)
- 8.2 Arrays
- 8.3 Strings
- 8.4 Sets
- 8.5 Pointers and Recursive Types
- 8.6 Lists
- 8.7 Files and Input/Output
- 8.8 Summary and Concluding Remarks
- 8.9 Exercises
- 8.10 Explorations
- 8.11 Bibliographic Notes
- Bibliography
- Subroutines and Control Abstraction
- Abstract
- 9.1 Review of Stack Layout
- 9.2 Calling Sequences
- 9.3 Parameter Passing
- 9.4 Exception Handling
- 9.5 Coroutines
- 9.6 Events
- 9.7 Asynchronous Programming
- 9.8 Summary and Concluding Remarks
- 9.9 Exercises
- 9.10 Explorations
- 9.11 Bibliographic Notes
- Bibliography
- Part III: Programming Models and Paradigms
- Object Orientation
- Abstract
- 10.1 Object-Oriented Programming
- 10.2 Encapsulation and Inheritance
- 10.3 Initialization and Finalization
- 10.4 Dynamic Method Binding
- 10.5 Interface Inheritance: Traits and Mix-ins
- 10.6 True Multiple Inheritance
- 10.7 Object-Oriented Programming Revisited
- 10.8 Summary and Concluding Remarks
- 10.9 Exercises
- 10.10 Explorations
- 10.11 Bibliographic Notes
- Bibliography
- Functional Languages
- Abstract
- 11.1 Historical Origins
- 11.2 Functional Programming Concepts
- 11.3 A Bit of Scheme
- 11.4 A Bit of OCaml
- 11.5 Evaluation Order Revisited
- 11.6 Higher-Order Functions
- 11.7 Theoretical Foundations
- 11.8 Functional Programming in Perspective
- 11.9 Summary and Concluding Remarks
- 11.10 Exercises
- 11.11 Explorations
- 11.12 Bibliographic Notes
- Bibliography
- Logic Languages
- Abstract
- 12.1 Logic Programming Concepts
- 12.2 Prolog
- 12.3 Theoretical Foundations
- 12.4 Logic Programming in Perspective
- 12.5 Summary and Concluding Remarks
- 12.6 Exercises
- 12.7 Explorations
- 12.8 Bibliographic Notes
- Bibliography
- Concurrency
- Abstract
- 13.1 Background and Motivation
- 13.2 Concurrent Programming Fundamentals
- 13.3 Implementing Synchronization
- 13.4 Language-Level Constructs
- 13.5 Message Passing
- 13.6 Summary and Concluding Remarks
- 13.7 Exercises
- 13.8 Explorations
- 13.9 Bibliographic Notes
- Bibliography
- Scripting
- Abstract
- 14.1 What Is a Scripting Language?
- 14.2 Problem Domains
- 14.3 Scripting the World Wide Web
- 14.4 Innovative Features
- 14.5 Summary and Concluding Remarks
- 14.6 Exercises
- 14.7 Explorations
- 14.8 Bibliographic Notes
- Bibliography
- Part IV: A Closer Look at Implementation
- Building a Runnable Program
- Abstract
- 15.1 Back-End Compiler Structure
- 15.2 Intermediate Forms
- 15.3 Code Generation
- 15.4 Address Space Organization
- 15.5 Assembly
- 15.6 Linking
- 15.7 Dynamic Linking
- 15.8 Summary and Concluding Remarks
- 15.9 Exercises
- 15.10 Explorations
- 15.11 Bibliographic Notes
- Run-Time Program Management
- Abstract
- 16.1 Virtual Machines
- 16.2 Late Binding of Machine Code
- 16.3 Inspection/Introspection
- 16.4 Summary and Concluding Remarks
- 16.5 Exercises
- 16.6 Explorations
- 16.7 Bibliographic Notes
- Bibliography
- Code Improvement
- Abstract
- A. Programming Languages Mentioned
- B. Language Design and Language Implementation
- C. Numbered Examples
- Bibliography
- Index