Wow, quite the assignment 1. I have seen this style of program before. What they want you to do is create a series of classes/procedures which when fed instructions in a specific format it calls the appropriate procedure to execute the statement.
So for instance, you read in an instruction like
PRINT "hello world" it will read in that line, parse it by knowing the first part is a command and the second part is a parameter. It will then say "Hey, this is a print statement, pass the string 'hello world' to the print procedure" where the print procedure will then print the "hello world" to the screen. But keep in mind that they want the parameters only to be integers (which I am not sure why that is but anyways). It will then move on to the next statement and see that it is a SET command and hand off the variable name along with the value to the SET procedure and that procedure will set the variable with the specified value.
It basically chews through each line and delegates the responsibility to various procedures based on the command and the values of the line.
However if you have questions the best place to ask is the instructor. Don't rely on just my interpretation of this. I would be asking questions too just to get the hang of how the instructor wants the program laid out.
This post has been edited by Martyr2: 3 Aug, 2008 - 09:02 AM