CHAPTER 1- Addtitional Notes
CHAPTER 1- Addtitional Notes
Notes
INTRODUCTION
Outline
• Overview of programming languages
• Abstractions in programming languages
• Computational paradigms
• Language definition
• Language translation
• Language design
• A brief history
Overview of programming languages
Overview of programming languages
What is Programming Language?
Machine Readability
•It must have simple enough structure to allow an efficient translation
•Is ensured by restricting the structure of a programming language to context-free
language
Human Readability
•It requires a programming language to provide an abstractions of the action of
computer that are easy to understand, even by a person not completely
understand with the underlying details of machines
•Tend to resemble natural languages
Overview of programming languages
Overview of programming languages
Reason for studying Programming Languages:
IMPERATIVE LANGUAGE
The semantic:
Special
Symbol for
“if” and Identifiers punctuation
operations
“else” / names symbols
(+ and <=)
(; and .)
Language translation
INTERPRETE TRANSLATO
R COMPILER
R
The Interpreter
• The interpreter is a translator that executes a program directly.
• Interpretation is a one step process, which both the program and the
input are provided to the interpreter and the output is obtained.
Target Executabl
Source
Code Further e code
code Compil
e translatio
n
Executab
le code
Processo
Input Output
r
Compilation process
PSEUDOINTERPRETER