Scripting language Script

Source: Internet
Author: User

Programming beginners, when learning will always listen to people say or see "script" the word, I did not know when I was a beginner what the script is, so often see someone said you will write "script" when, always thought is some profound programming technology. But the opposite is true, scripting language is a simpler, lighter, and faster language than programming languages, so let's talk about what a script is.

Before we talk about scripts, let's talk about programming, the general Introduction programming language is more or less familiar with, programming is to let the computer do what people want to tell the computer.

The computer can understand the command actually only 0 and 1 of the sequence, but if let us through a variety of 0 and 1 sequence to operate the computer, it is undoubtedly very difficult, so people define their own language method to write the program, so that developers can be more fluent, easy to write programs, But the computer can still only understand the 01 sequence. So people want to use the "compile" function, the written easy-to-read language translated into the computer can recognize the 01 machine code.

Compilation: As the name implies, is the translation of the language, and then written into another language. In programming, we translate the code we write into 01 sequential machine languages and generate files.

"(casually mentioning can not see) early people define a language called assembler, which uses symbols to replace machine instructions that are not easy to remember, so programmers don't have to remember the instructions represented by the vast variety of 01 sequences. But this language is still not as easy to remember as our daily conversation, so people on this basis also defined a series of high-level language like Java, C and so on, this language than assembly language more close to People's daily speaking habits, which also makes programming difficulty greatly reduced. Note: Both the high-level language and the assembly language require the compiler to compile the executable file "

So now we're going to say script, the script is a more advanced language, a more simple language, its requirements are not high-level language so strict, simple syntax and light weight. Like a script written by a screenwriter, describe the episode in a streamlined language. And unlike high-level languages and assembly language, scripts do not have to be compiled into executable files, scripts corresponding to the use of the interpreter, through the interpreter can understand the script file and execute the statement. You can say that the interpreter is equivalent to the compiler for the high-level language of the script, but the difference is that the interpreter not only understands the command content of the script statement, but also executes the command, and does not need to generate a compiler-generated machine code executable file.

For example, the scripting language--javascript its interpreter is actually the browser, the browser opens HTML, detects the JavaScript command inserted in it, understands the command that the statement wants to execute, and executes directly.

There are many applications for scripts, such as: Web pages, games, shell programming in Linux, and so on.

Scripting language Script

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.