Defined in Gof:
"Defines the statements required by a programming language and provides an explanation to parse (execute) the language. ”
Traditionally, the execution of program code is usually done in two ways
First: Compile the program
The second type: Interpreter
Common use of the Interpreter programming language
Includes scripting languages in the field of popular and web design
such as JavaScript, PHP, Ruby, etc.
These program code is written after the general text editor is completed and placed in the specified location
Can be executed directly by the interpreter in the application
including LUA
In Unity
Written scripts are compiled by Unityengine before they are executed.
Not exactly an interpreter mode.
But compared with the development tools more than 10 years ago
It will conform to the definition of the interpreter pattern.
The article is compiled from the book "Design pattern and game perfect development" dishes rise up
"Unity and 23 design mode" Interpreter modes (interpreter)