Mar 5, 2001
66
0
0
alrighty.

i'm learning LISP right now. the methodology and theory of the language intrigues me quite a bit, and i'm enjoying it thoroughly.

any free LISP systems out there? good ones, pereferably packaged with a good text editor?

i know it's a shot in the dark, but it would be nice to get some feedback.

LISP 0wnz j00.
 

kritikal

Member
Feb 28, 2001
45
0
0
use linux..
emacs (or vi for those of you out there... i converted to emacs.. way more extensible)
for the writing part..
gcl for the actual interpretation..

here's the first project for my CS312 (PROGRAMMING LANGUAGE DESIGN) class..
LISP.. i can post my second one when i'm done..
then on to PROLOG.. and finally JAVA.. hell yea.. i'm tired
of C++ anyways..



(defun ADD_LIST (x)
(cond ((null x) 0)
((atom x) x)
((listp x) (+ (add_list(first x)) (add_list(rest x))))
))


yea.. so this one is pretty easy to figure it out..
try it with these examples:
(add_tree 5)
(add_tree '(1 3 2))
(add_tree '((1) ((3) 2)))