An interpreter converts one statement of a program into machine code at one time
Work Step by Step
An interpreter reads one statement from the source code, translates it to the machine code or virtual machine code, and then executes it right away. It executes the statement before translating the next statement of the source program. If there is an error in the statement, the interpreter stops working and displays some error message. The $advantage$ is that the error is found immediately, but it is $slow$ at the process of conversion.