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

D.2 Grammar

The grammar in EBNF for Camille (version 4.0) is given in Figure D.1. Comments in Camille programs begin with three consecutive dashes (i.e., ---) and continue to the end of the line. Multi-line comments are not supported. Comments are ignored by the Camille scanner. Camille can be used for functional or imperative programming, or both. To use it for functional programming, use the <program> ::= <eχpression> grammar rule; to use it for imperative programming, use the <program> ::= <statement> rule. User-defined functions are first-class entities in Camille. This means that a function can be the return value of an expression (i.e., an expressed value), can be bound to an identifier and stored in the environment of the interpreter ...

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