Design a programming language that has commands for manipulating a
picture of a graphical robot or other object. Then write a program which reads
in a user's program which might contain constructs such as:
for i = 1 to 10 do
begin
raise_leg(left);
lower_leg(left);
raise_leg(right);
lower_leg(right);
end;
As your program
interprets the commands, alter the robots image to carry out the corresponding
actions. It will be very important to define a reasonable (not too large) set
of commands for the robot, along with a reasonable set of commands (loops,
branches) which can be used to control the robot. If you have had the graphics
class you might be able to include embellishments for the robot such as making
the robot move in 3D. Plan your language carefully before you start.