Scripting languages is a computer programming language, which aims to shorten the traditional editing-compiling-linking-running process.
Although many scripting languages have gone beyond the field of computer simple task automation and are mature enough to write exquisite programs, they are still called scripts. Almost all computer systems have a scripting language at all levels. Including operating system layer, such as computer games, network applications, word processing documents, network software, etc.
In many ways, high-level programming languages and scripting languages cross each other, and there is no clear boundary between them. Scripts can automatically perform interactive operations that would otherwise be completed with a keyboard. Shell scripts are mainly composed of commands that need to be input at the command line, or in a text editor, users can use scripts to combine some commonly used operations into a series.
The language mainly used to write such scripts is called scripting language. In fact, many scripting languages have gone beyond simple user command sequences and can write more complex programs.
trait
1, scripting languages (JavaScript, VBscript, etc. ) is between HTML and C, C++, Java, C# and other programming languages. HTML is usually used to format and link text. Programming languages are usually used to send a series of complex instructions to machines.
2. There are many similarities between scripting language and programming language. Their functions are similar to those of programming language, and they also involve variables. The biggest difference between programming language and programming language is that the grammar and rules of programming language are stricter and more complicated.
3. Relationship with program code: Script is also a language and is also composed of program code.
4. Scripting languages are explanatory languages, such as Python, vbscript, javascript, installshield script, ActionScript, etc. Unlike c\c++, it can be compiled into binary code and exists as an executable file. Scripting language can be used directly without compilation, and the interpreter is responsible for interpretation.
5. Scripting languages generally exist in the form of text, similar to commands.
For example, if you have installed a program called aaa.exe, you can open a file with an extension. Aa, and specify a set of rules (syntax) for writing. Aa file. When others write. Aa files, their own programs use these rules to understand the writer's intentions and respond. Then, this set of rules is a scripting language.
6. Compared with compiled computer programming language, the program developed by scripting language is interpreted and executed by its corresponding interpreter (or virtual machine) when it is executed. The system programming language is precompiled into machine language and executed.
The main feature of scripting language is that the program code is not only a scripting program, but also a final executable file. Scripting languages can be divided into independent languages and embedded languages. Independent scripting languages completely rely on interpreters when executing, while embedded scripting languages are usually embedded in programming languages (such as C, C++, VB, Java, etc.). ).
7. Compared with the system programming language, the difference is that the scripting language is explanatory and the system programming language is compiled. Interpreted languages provide fast conversion, because there is no compile time, allowing users to write applications at runtime without time-consuming compilation/packaging process. Interpreter makes the application more flexible, and the code in scripting language can be generated and executed in real time.
Scripting languages are usually easy to learn and use, and the purpose is to let programmers finish programming work quickly.