CS170

Project Assignment 3

TARGET DATE : Thursday 4/16.

The goal of this assignment is to implement the basic functions quote, car, cdr, cons, and symbol?.

Interpreting Simple Functions

Add an eval() function that can evaluate a list, given its internal representation. For now, just implement the basic functions quote, car, cdr, cons and symbol?. All these functions are one to three lines long with the exception of cons, which is perhaps 6 or 7 lines long. Each of these functions (eval, car, cdr, quote) should have a List parameter (cons has two) and return a List. When this phase is complete, a sample run might look like this.

A few tips on evaluation:

Submission location is here.

Back to CS170 Assignments.