25.11.2014 Views

Tema Lisp - Dpto. Ciencias de la Computación e Inteligencia Artificial.

Tema Lisp - Dpto. Ciencias de la Computación e Inteligencia Artificial.

Tema Lisp - Dpto. Ciencias de la Computación e Inteligencia Artificial.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introducción a <strong>Lisp</strong><br />

1<br />

Algunos tipos <strong>de</strong> datos<br />

✉<br />

Enteros: 1, 13, 245<br />

1<br />

✉<br />

Símbolos: a, x, juan<br />

✉<br />

Listas: (esto (es) (una lista))<br />

quote para evitar evaluaciones<br />

> x<br />

*** - EVAL: variable X has no value<br />

1. Break> abort<br />

> ’x<br />

X<br />

> (esto (es) (una lista))<br />

*** - EVAL: un<strong>de</strong>fined function ESTO<br />

1. Break> abort<br />

> ’(esto (es) (una lista))<br />

(ESTO (ES) (UNA LISTA))<br />

IA-I 2003–2004 CcIa Introducción a <strong>Lisp</strong> <strong>Lisp</strong>.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!