The C interpreter in the SRV1 isn't a bad starting point. There are some basic syntax rules you need to observe (declaration of a main() function, use of semicolors and curly brackets, etc), but we can help walk you through those.
A good starting point would be to print out the list of built-in C functions from
http://www.surveyor.com/SRV_protocol.html Some of these primitives, such as int, char, for, if, else, while .. are part of the language, and the rest are functions we defined for interfacing to the SRV1, such as input, print, delay, motors, laser, rand, range, blob, color, etc.
A really simple program that just drives the robot forward for 1 second, turns right, then drives forward in the new direction would look like this -
main() {
motors(50, 50);
delay(1000);
motors(50, -50);
delay(500);
motors(50, 50);
delay(1000);
motors(0, 0);
}
So it drives forward for 1000 millisecs (1 second), spins right for 500 millisecs (left motor forward, right motor reverse), then drives forward again for 1000 millisecs.
We can make this more complex, but this is a good starting point.