Just like a compiler, is a translator used to convert high-level programming language
to low-level programming language. It converts the program one at a time and reports
errors detected at once while doing the conversion. With this, it is easier to detect
errors than in a compiler. An interpreter is faster than a compiler as it immediately
executes the code upon reading the code.
It is often used as a debugging tool for software development as it can execute a single
line of code at a time. An interpreter is also more portable than a compiler as it is not
processor-dependent, you can work between hardware architectures.
Interpreted code executes instructions in a program without compiling them into machine language. The
interpreted code parses the source code directly, is paired with a virtual machine that translates the code
for the machine at the time of execution, or takes advantage of precompiled code.
There are two ways to execute a program in programming. Both through compilation and an interpreter,
in turn. Using a compiler is the usual method.
Compiled code runs faster than interpreted code because it doesn't need to do any work at the time the
action takes place. The work is already done.
- Python
- Ruby
- Perl
- PHP
- Matlab
- OCAML
- List Processing