CS 342 Lecture -*- Outline -*- * The core language effect: state why the given constructs were included ** The core language (imperative programming) motivation: small language that captures essence of Pascal what's are the essential parts of Pascal? assignment if-then-else, while-do functions (no procedures here) the way variables are looked up (static scope) what differences? syntax (cambridge prefix) an expression language (if expressions!) only call by value no declarations, no type checking no procedures exercise: write a max operation more exercises in recitation Do some problems on the board, e.g., number 2 in chapter 1 ** notes on the syntax describe how f(x) is written as (f x) if-expressions, not if-statements while only has one expression begin necessary, when have more than one expression in body functions can have 0 formal parameters (define one () 1) invocation of such is like (one)