December 2021
Beginner
840 pages
47h 29m
English
Although Camille has a provision for variable assignment, an entire Camille program must expressed as a single Camille expression—there is no concept of sequential evaluation in Camille. We now extend the interpreter to morph Camille into a language that supports a synthesis of expressions and statements. To syntactically support statements that are sequentially executed in Camille, we add both the following rules to the grammar and the corresponding pattern-action rules to the PLY parser generator: