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

11.2 Non-recursive Functions

We begin by adding support for non-recursive functions—that is, functions that cannot make a call to themselves in their body.

11.2.1 Adding Support for User-Defined Functions to Camille

We desire user-defined functions to be first-class entities in Camille. This means that a function can be (1) the return value of an expression (altering the expressed values) and (2) bound to an identifier and stored in the environment of the interpreter (altering the denoted values). Adding user-defined, first-class functions to Camille alters the expressed and denoted values of the language:

Two expressions. Expressed value equals integer union closure. Denoted value equals integer union closure.

Thus,

Recall that in Chapter ...

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