They are generally either translated into machine code by a compiler or an assembler before being run, or translated directly at run time by an interpreter.
Programming languages are translated into machine code by what?
a compiler or an assembler