Skip to Content
Programming Languages: Concepts and Implementation
book

Programming Languages: Concepts and Implementation

by Saverio Perugini
December 2021
Beginner
840 pages
47h 29m
English
Jones & Bartlett Learning
Content preview from Programming Languages: Concepts and Implementation

10.4 Preliminaries: Interpreter Essentials

Building an interpreter for a computer language involves defining the following elements:

  1. A Read-Eval-Print Loop (REPL): a user interface that reads program strings and passes them to the front end of the interpreter

  2. A Front End: a source code parser that translates a string representing a program into an abstract-syntax representation—usually a tree—of the program, sometimes referred to as bytecode

  3. An Interpreter:1 an expression evaluation function or loop that traverses and interprets an abstract-syntax representation of the program

  4. Supporting Data Types/Structures and Libraries: a suite of abstract data types (e.g., an environment, closure, and reference) and associated functions to support the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concepts and Semantics of Programming Languages 1

Concepts and Semantics of Programming Languages 1

Therese Hardin, Mathieu Jaume, Francois Pessaux, Veronique Viguie Donzeau-Gouge
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9781284222739