Tuesday, June 19, 2012

Interpreter

Interpreter: An interpreter is a program that appears to execute a source program as if it were machine language.
Languages such as BASIC, SNOBOL, LISP can be translated using interpreters. JAVA also uses interpreter. The process of interpretation can be carried out in following phases. 
1. Lexical analysis
2. Synatx analysis
3. Semantic analysis
4. Direct Execution


Advantages:
  • Modification  of user program can be easily made and implemented as execution proceeds.
  • Type of object that denotes a various may change dynamically.
  • Debugging a program and finding errors is simplified task for a program used for interpretation.
  • The interpreter for the language makes it machine independent.
Disadvantages:
  • The execution of the program is slower.
  • Memory consumption is more.

0 comments:

Post a Comment