what is interpreter code example

Example 1: compiler vs interpreter

# Interpreters and compilers are very similar in structure. 
$ The main difference is that an interpreter directly executes 
# the instructions in the source programming language while a 
# compiler translates those instructions into efficient machine code.

Example 2: what is interpreter language

An interpreted language is a type of programming language for which most of its 
implementations execute instructions directly and freely, 
without previously compiling a program into machine-language instructions.