| CS 330 | Home | Schedule | Resources |
The objective of this homework is to a) better understand the operational behavior of a program when it is executed, and b) learn how to interpret a "little language".
Estimated time: 5-6 hours
DUE DATE: Monday Feb 13, by midnight
Executing a program typically consists of
In this assignment you will write the code for the last bullet using an interface we give you for creating/modifying the semantic stack, the environment and the store. In PART 2, you will do the rest of the bullets and write your own implementation for the stack, environment, and store.
To write the interpreter that executes the kernel language you will need to write three functions: ExecuteProgram, ExecuteStatement, and CreateVal. There is a skeleton of the program for you here. The utilities module you'll link in is here. NOTE: You will implement the semantics of the first eight kernel statements; you do NOT need to implement the 'case'.