A high level language to machine code can be done by
A high level language to machine code can be done by interpreter coding.
A translator, in software programming terms, is a generic term that could refer to a compiler, assembler, or interpreter; anything that converts higher level code into another high-level code (e.g., Basic, C++, Fortran, Java) or lower-level (i.e., a language that the processor can understand), such as assembly language.
Interpreter:-
An interpreter translates code like a compiler but reads the code and immediately executes on that code, and therefore is initially faster than a compiler.
Compiler:-
A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The compiler is used to translate source code into machine code or compiled code.