Distinguish skipped and required evaluations

An integer interpreter starts with an empty environment for each expression. Num returns its integer, and evaluating Var("missing") raises an unbound-name error. Add evaluates both operands from left to right. Let evaluates its initializer before its body. IfZero(test, yes, no) evaluates the test and then only yes when the test is zero, or only no otherwise.


Which supplied trees return an integer without an error? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Programming Language Design and Construction Questions: