Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Lenguajes de Programación - Fundamentos Generales
Lenguajes de Programación - Fundamentos Generales
Capítulo 1:
Fundamentos Generales
55 89 e5 53 83 ec 04 83 e4 f0 e8 31 00 00 00 89 c3 e8 2a 00
00 00 39 c3 74 10 8d b6 00 00 00 00 39 c3 7e 13 29 c3 39 c3
75 f6 89 1c 24 e8 6e 00 00 00 8b 5d fc c9 c3 29 d8 eb eb 90
Declarativos
Funcionales Lisp, Scheme, Haskell
Lógicos Prolog
Imperativos
Procedimentales C, Ada, Fortran, Basic
Scripting Perl, Python, PHP
Orientados a Objetos Smalltalk, Eiffel, Java
int i, f = 1;
for (i = n; i > 0; i --)
f = f * i;
return f;
1 class Ejemplo{
2 static int m = 1;
3 static int method1() {m++; return m-1;}
4 static int a1() {return m + method1();}
5 static int a2() {return method1() + m;}
6 }Predicado
Valores de las variables
(define (mcd a b)
(cond ((= a b) a)
((> a b) (mcd (- a b) b))
(else (mcd (- b a) a))))
(define (factorial n)
(cond ((= n 1) 1)
((> n 1) (* n (factorial (- n 1))))))
x +1
2
, si x0
2
f ( x ) x + 3x + 2 , si 0 x 3
x +1
37
, si x 3