Professional Documents
Culture Documents
Introduction To Programming Language
Introduction To Programming Language
Bernard D. Otero
Highlevelprogram
class
class Triangle
Triangle {{
...
...
float
float surface()
surface()
return
return b*h/2;
b*h/2;
}}
Lowlevelprogram
LOAD
LOAD r1,b
r1,b
LOAD
LOAD r2,h
r2,h
MUL
MUL r1,r2
r1,r2
DIV
DIV r1,#2
r1,#2
RET
RET
ExecutableMachinecode 0001001001000101
0001001001000101
0010010011101100
0010010011101100
10101101001...
10101101001...
FORTRAN
COBOL
C and C++
Visual Basic
Declarative languages
telling the "machine"1 what you would like to
happen, and let the computer figure out how to
do it.
Logic: Prolog
Based on mathematical logic
Rule- or Constraint-based
Scripting Languages
JavaScript and VBScript
Php and ASP
Perl and Python
Command Languages
sh, csh, bash
HTML
HyperText Markup Language.
Used on the Internet and the World Wide Web
(WWW).
Web page developer puts brief codes called tags
in the page to indicate how the page should be
formatted.
XML
Extensible Markup Language.
A language for defining other languages.