Académique Documents
Professionnel Documents
Culture Documents
Ramirez
CS18
Programming Languages
LANGUAGE DEVELOPMENT DESIGN & ISSUES
by
LAARNI C. DESENGAO PANCHO, MIT
languages?
languages?
Bicol University
Scientific applications
FORTRAN
Business
COBOL
applications
AI
LISP, Scheme (& Prolog)
Systems
C
programming
Web programming
Perl, PHP, Javascript
criteria
Readability
How much can non-author understand logic of code just by
reading it?
Is code clear and unambiguous to reader?
These are often subjective, but sometimes is is fairly obvious
Examples of features that help readability:
General purpose
C++, Ada, Java
Comments
Long identifier names
Named constants
Clearly understood control statements
Language orthogonality
Simple features combine in a consistent way
But it can go too far, as explained in the text about Algol 68
Writability
Reliability
1.
2.
John C. Ramirez
Architecture
Imperative languages
Fit well with von Neumann computers
Focus is on variables, assignment, selection and iteration
Examples: FORTRAN, Pascal, C, Ada, C++, Java
10
Cost
Training programmers
Writing programs
Compiling programs
Executing programs
11
12
2)
Syntax Analysis
3)
4)
Code Generation
John C. Ramirez
13
14
Interpreting
Hybrid