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 :
Lisp
(defun convert ()
(format t "Enter Fahrenheit ")
(LET (fahr)
(SETQ fahr (read fahr))
(APPEND '(celsisus is) (*(- fahr 32)(/ 5 9)) )
)
)
BASIC
CLS
INPUT "Enter your name: ", Name$
IF Name$="Mike" THEN
PRINT "Go Away!"
ELSE
PRINT "Hello, "; Name$; ". How are you today?"
END IF
External Reference Links : Advantages and Disadvantages of Interpreter | Interpreter
No comments:
Post a Comment