December 2021
Beginner
840 pages
47h 29m
English
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 ...