Lesson 3 - Computer Programming Languages and Language Translators
Lesson 3 - Computer Programming Languages and Language Translators
Language Translators
Programming language: - This is a program with a special
role i.e. it enables us to come up with other programs. Has
instructions that enable us to write programs or modify an
existing program. C, C++, JAVA, PHP, JSP, C#, JAVASCRIPT
etc.
They have features of language
Grammar : SYNTAX
Vocabulary
Interpretation/ meaning: SEMANTICS
There are many different languages that can be used to
program a computer and they are categorized as follows:
i) Machine language
ii)Assembly /Low-level language
iii) High-level languages
Machine language
Disadvantages
1
The assembly language program must be converted to
machine language for the machine to understand it.
High-level languages
Advantages
Language Translators
2
A compiler or interpreter is itself a computer program that
accepts a program written in a high-level language as input
(source program), and generates a corresponding machine
language program as output (object program
Compilers
3
Source code compiled on one platform will not run on
another - the machine code is specific to the processor's
architecture.
Interpreters
Assemblers
4
Assemblers are a third type of translator. The purpose of an
assembler is to translate assembly language into machine
code.
5
Examples of integrated environments include Borland or
Microsoft Visual Studio Development environments,
CodeBlocks.
Debuggers