Читайте также: |
|
Computers cannot understand ordinary spoken English or any other natural language. The only language they can understand and execute directly is called machine code. This consists of the 1s and Os (binary codes) that are processed by the CPU.
Machine code as a means of communication is very difficult to write, so we use symbolic languages that are easier to understand. The translation of symbolic instructions to machine code is accomplished through the use of a special program called a language processor. There are three types of language processors: assemblers, compilers, and interpreters. The so-called assembly languages use abbreviations such as ADD, SUB, MPY to represent instructions. These mnemonic codes are like labels easily associated with the items to which they refer. Basic languages, where the program is similar to the machine code version, are known as low-level languages. In these languages, each instruction is equivalent to a single machine code instruction, and the program is converted into machine code by an assembler. A low-level language does not need a compiler or interpreter to run; the processor for which the language was written is able to run the code without using either of these.
![]() | To make the programs easier to write and to overcome the problem of intercommunication between different types of machines, high-level languages were designed such as BASIC, COBOL, FORTRAN or Pascal. These are all problem-oriented rather than machine-oriented. High-level languages are closer to human languages; they use forms resembling English, which makes programming easier; |
Programs written in one of these languages (known as source programs) are converted into a lower-level language by means of a compiler (generating the object program). Some languages are interpreted by an interpreter program, which converts the program into machine code one line at a time as each line is required by the processor. The languages used to create Web documents are called markup languages; they use instructions (markups) to format and link text files. Examples are:
HTML (Hyper Text Markup Language) - the code used to create Web pages. It is a page description language used for creating webpages.HTML uses a system of tags to mark page links and formatting.
VoiceXML - it makes Internet content accessible via speech recognition and phone. Instead of using a web browser on a PC, you use a telephone to access voice-equipped websites via a VoiceXML interpreter (a voice browser).. For input, VoiceXML uses voice recognition. For output, it uses pre-recorded audio content and speech synthesis (text-to-speech). You just dial the phone number of the website and then give spoken instructions, commands, and get the required information.
Дата добавления: 2015-01-30; просмотров: 228 | Поможем написать вашу работу | Нарушение авторских прав |