What is Interpreter ?
- Interpreter Takes Single instruction as input .
- No Intermediate Object Code is Generated
- Conditional Control Statements are Executes slower
- Memory Requirement is Less
- Every time higher level program is converted into lower level program
- Errors are displayed for every instruction interpreted (if any)
- The interpreter can immediately execute high-level programs, thus interpreters are sometimes used during the development of a program, when a programmer wants to add small sections at a time and test them quickly.
- In addition, interpreters are often used in education because they allow students to program interactively.
Examples of Programming Languages Using Interpreter :
(defun convert ()
(format t "Enter Fahrenheit ")
(SETQ fahr (read fahr))
(APPEND '(celsisus is) (*(- fahr 32)(/ 5 9)) )
INPUT "Enter your name: ", Name$
IF Name$="Mike" THEN
PRINT "Go Away!"
PRINT "Hello, "; Name$; ". How are you today?"
External Reference Links : Advantages and Disadvantages of Interpreter | Interpreter