>>> expr = read_line('(+ 2 2)') >>> expr pair('+', pair(2, pair(2, nil))) >>> scheme_eval(expr, create_global_frame()) 4 # evaluate atoms if scheme_symbolp (expr): Scheme works by evaluating expressions in environments. Every expression evaluates to a value. You will not be responsible for implementing.

Understanding the Context

The final project for uc berkeley's computer science class cs61a. Project consists of using python to implement an interpreter for a subset of the scheme programming language. In this project, you will develop an interpreter for a subset of the scheme language. As you proceed, think about the issues that arise in the design of a programming language; >>> check_formals (read_line ( (a b c))) if scheme_listp (formals):