1-Theory of Programming Languages - Introduction
1-Theory of Programming Languages - Introduction
Theory of Programming
Languages
Riphah Institute for Computing and
Applied Sciences
Dr. Ayesha Kashif
Programming Domains
▪ Scientific Applications
▪ An application that simulates real-world activities using
mathematics, such as numerical weather prediction,
computational fluid dynamics, computational physics, and
computational chemistry etc.
▪ The first language for scientific applications was Fortran.
ALGOL 60 and most of its descendants were also intended
to be used in this area, although they were designed to be
used in related areas as well.
▪ No subsequent language is significantly better than Fortran,
which explains why Fortran is still used
Programming Domains
▪ Business Applications
▪ Special computers were developed for business applications,
along with special languages.
▪ The first successful high-Level language for business was COBOL
(Common Business-Oriented Language). It probably still is the
most commonly used language for these applications.
▪ Business languages are characterized by facilities for producing
▪ elaborate reports,
▪ precise ways of describing and storing decimal numbers and
character data, and
▪ the ability to specify decimal arithmetic operations.
10
Programming Domains
▪ Artificial Intelligence
▪ Artificial intelligence (AI) is a broad area of computer
applications characterized by the use of symbolic rather than
numeric computations.
▪ Symbolic computation means that symbols, consisting of names
rather than numbers, are manipulated.
▪ The particular form of symbolic logic that is used for logic
programming is called predicate calculus
11
Programming Domains
▪ Artificial Intelligence
▪ Also, symbolic computation is more conveniently done with
linked lists of data rather than arrays.
▪ This kind of programming sometimes requires more
flexibility than other programming domains.
▪ For example, in some AI applications the ability to create
and execute code segments during execution is convenient.
▪ The first widely used programming language developed for
AI applications was the functional language Lisp
▪ An alternative is Logic programming using the Prolog,
language.
▪ More recently, some AI applications have been written in
systems languages such as C.
12
Programming Domains
▪ Web Software
▪ The World Wide Web is supported by an eclectic collection of
languages, ranging from markup languages, such as HTML,
which is not a programming language, to general-purpose
programming languages, such as Java.
▪ Because of the pervasive need for dynamic Web content, some
computation capability is often included in the technology of
content presentation.
▪ This functionality can be provided by embedding programming
code in an HTML document. Such code is often in the form of a
scripting language, such as JavaScript or PHP
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
References
▪ Robert W. Sebesta-2016- Concepts of
Programming Languages
▪ Michael L. Scott - Programming Language
Pragmatics-Morgan Kaufmann (2015)
38