LARA

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
interpreter [2007/03/20 17:39]
vkuncak
interpreter [2007/03/20 17:59]
vkuncak
Line 1: Line 1:
 ==== Interpreter ==== ==== Interpreter ====
  
-An interpreter executes a given program. ​ An interpreter can traverse the statements of the program, evaluate the expressions in the current state and update the values of the state in the presence of assignment statements. ​ Interpreter is strongly related to a compiler, the difference being that the compiler first translates the code into the target language, which can then be executed, whereas interpreter directly executes the language. ​ Therefore, both the compiler and interpreter ​generally share the task of doing syntactic analysis of the source code.+An interpreter executes a given program. ​ An interpreter can traverse the statements of the program, evaluate the expressions in the current state and update the values of the state in the presence of assignment statements. ​ Interpreter is strongly related to a compiler, the difference being that the compiler first translates the code into the target language, which can then be executed, whereas interpreter directly executes the language. ​ Therefore, both the compiler and interpreter ​need to do syntactic analysis of the source code.