New version!A new version of this website is available at architectural-patterns.net. Interpreter a.k.a. Virtual Machine
The interpreter processes or executes other programs. Examples
Where does it come from?A.f.a.i.k. the first interpreter was written for the BASIC programming language in Dartmouth College in 1964. When should you use it?
How does it work?One or more Programs or Scripts are loaded into the Interpreter. They may be converted into an internal representation that can be processed more effectively by the Interpreter. Connections between the Program and the Environment are created. The Interpreter reads instructions from the Program and processes them. This affects the Environment. Changes in the Environment are fed back to the Program. This cycle is executed until the Program is finished. Problems
Common implementation techniques
Links |