"Unity and 23 design mode" Interpreter modes (interpreter)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.