A translator for robot-oriented programming languages is constructed with the aid of the compiler compiler COCO-2. This method of constructing of a translator appeared to be very suitable, as the resulting translator can easily be adapted to the changes in both the source and target language. Some necessary modifications of the translator are shown, due to alterations in the target language.