Lecture 1&2 PPL
Lecture 1&2 PPL
Languages
TextBook
Concepts of Programming
Languages, Robert W.
Sebesta, (10th edition),
Addison-Wesley Publishing
Company
count=count+1
count+=1
count++
++count
)
◆ Minimal operator overloading.
Principles of Programming languages
Evaluation Criteria: Readability
➔ Orthogonality
◆ A relatively small set of primitive constructs
can be
combined in a relatively small number of ways
◆ Every possible combination is legal
➔ Data types
◆ Adequate predefined data types.
In contrast, VAX has only one statement for addition (hence greater
orthogonality):
ADDL operand1, operand2
– C has two kinds of built-in data structures, arrays and records (structs). Records can
be returned from functions, but arrays cannot.
– A member of a struct can have any type except void or a structure of the same
type.
– Parameters are passed by value, unless they are arrays, in which case they are
passed by reference.
Reading
Chapter on Orthogonality from “The Art of Unix
Programming”
Principles of Programming languages
Evaluation Criteria: Readability
➔Syntax considerations
-Identifier forms: flexible composition.
-Special words and methods of forming compound statements.
-Form and meaning: self-descriptive constructs, meaningful
keywords
COBOL
Dataflow