A program that converts a program written in one language to the equivalent program in another language. A compiler is a specific example of a translator: it takes a program written in a high-level language such as Fortran or C++ and converts it into machine code or assembly language.