Differences
This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
interpreter [2007/03/20 17:36] vkuncak created |
interpreter [2007/03/20 17:39] 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. | + | 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. |