Assignments Due
Reading
Upcoming Help Schedule
Expression ::= PrimitiveExpression
PrimitiveExpression ::= Number | true | false | Primitive Procedure
Evaluation Rule 1: Primitives. A primitive, evaluates to __________________________________________.
Expression ::= NameExpression
NameExpression ::= Name
Evaluation Rule 2: Names. A name expression evaluates to __________________________________________.
Expression ::= ApplicationExpression
ApplicationExpression ::= (Expression MoreExpressions)
MoreExpressions ::=
MoreExpressions ::= Expression MoreExpressions
Evaluation Rule 3: Application. To evaluate an application:
(a) Evaluate all the subexpressions (in any order)
(b) Apply the value of the first subexpression to the values of all the other subexpressions.Application Rule 1: Primitives. If the procedure to apply is a primitive, __________________.
Application Rule 2: Constructed Procedures. If the procedure is a constructed procedure, ___________________ the body of the procedure with each formal parameter replaced by the corresponding actual argument expression value.
You must be logged in to post a comment.
Recent Comments