Script, language, writing scripts are what? ? ?

First, the script

Intended for theatrical scripts, outlines the development of the film, to determine the direction of the story. That is, places the story takes place, the time, what roles have changed, the role of dialogue, action, emotion, and so on.

In the field of computer programming, we can also be understood in this perspective. Look at some definitions:

  • Script (script) is to use a specific descriptive language, according to certain executable files written in the format, also known as a macro or batch file. Scripts can usually be temporarily called and executed by the application.

Implementation of dynamic program

Binary mode

First binary program is written in our compiled into machine-readable instruction codes (e.g., .exe file), and then executed. We compiled this program can only be performed using, but can not see the content of his program.

script

Script simply is a section of text commands, has good readability. However, it is interpreted as a line, and then executed by a machine line.

Simply put: the script by the interpreter interpreted. What is interpreted?

  • Interpreted not compiled, interpreted code implementation of a code section, code interpreter interpreted as system instructions, the system can be understood as assembly language instructions, the system finally is converted to machine code instructions, executed directly by the machine.
  • Because the script more than a translation process at the time of execution, so it executes binary program efficiency ratio to be slightly lower.

This is with the intent of the script: the actors follow a step by step description of the script is very similar to acting.

Second, the scripting language is a programming language

Programming language

  • Machine language: 0 and 1, humans almost no way to read, understand,
  • Assembly: composed of a certain instruction, the relatively high cost of learning; do some driving in the bottom, small size, high efficiency
  • High-level language: c, c ++, java, php, python, javascript, etc.

Scripting language

  • A range in a special language between HTML and programming languages ​​such as JAVA, Visual Basic, C ++ and so on.
  • Although it is closer to the latter, but it does not have a complex programming language, syntax and strict rules.
    Common scripting languages: Python, JavaScript.
  • Scripting language is similar in position to the position of Java byte code, but its advantage is opened for reading, while the bytecode does not.
  • Refers to a single scripting language as a simple programming tasks (such as shell scripts).

Third, script writing

If you understand what is scripting and scripting language to write the script will naturally understand, is written in a scripting language script nothing.

Published 300 original articles · won praise 48 · views 8072

Guess you like

Origin blog.csdn.net/qq_43539599/article/details/103984622