Lisp: diferència entre les revisions

Contingut suprimit Contingut afegit
m Correcció posició plantilla:commonscat
Línia 4:
== Aplicacions ==
*L'important editor de textos ''[[Emacs]]'' va ser programat amb Lisp.
*El programa "Hola Món", en Lisp, éspot ser així:
 
<source lang="lisp">
(format t "Hola, monmón!")
</source>
 
<source lang="lisp">
> "Hola, món!"
"Hola, món!"
>
</source>
 
<source lang="lisp">
(DEFUN HOLA-MON ()
"Hola, món"
)
(HOLA-MON)
"Hola, món!"
>
</source>
 
<source lang="lisp">
> (let () (print (format '() "Hello Hell!!!")) (terpri)'ok)
"Hello Hell!!!"
OK
>
</source>