From: chapulin
Subject: Beginners LISP question
Date: 
Message-ID: <85qp78$9dd$1@nnrp1.deja.com>
In my beginners LISP book, it says "to begin a session with LISP, start
a LISP process." How do I do this in a Linux environment? If anyone
could tell me what the proper commands would be to get the ball rolling,
that would be great. Thsnks.

--

-chapulin


Sent via Deja.com http://www.deja.com/
Before you buy.

From: Andrew Cooke
Subject: Re: Beginners LISP question
Date: 
Message-ID: <85quqe$dbd$1@nnrp1.deja.com>
Starting a Lisp process just means starting the Lisp interpreter.

You need to have a Lisp installed on your computer.  I have SuSE Linux,
and that includes CLISP.  If you have SuSE Linux, then use YAST to
install CLISP.  Once you've done that type "clisp" in a terminal window.

If you have another Linux you need to find out what lisp packages are
available and get one.  You may already have one - have you tride typing
"lisp" or "clisp"?

Andrew


In article <············@nnrp1.deja.com>,
  chapulin <········@my-deja.com> wrote:
> In my beginners LISP book, it says "to begin a session with LISP,
start
> a LISP process." How do I do this in a Linux environment? If anyone
> could tell me what the proper commands would be to get the ball
rolling,
> that would be great. Thsnks.


Sent via Deja.com http://www.deja.com/
Before you buy.
From: chapulin
Subject: Re: Beginners LISP question
Date: 
Message-ID: <85rqph$vke$1@nnrp1.deja.com>
Andrew --

	I tried both "lisp" and "clisp" but neither of them worked (I have
Redhat Linux). I was under the impression that I would be able to
compile and work with LISP already because someone told me emacs came
automatically with the capability to do that. I can edit a file with a
.lsp extension and emacs knows its a LISP file, but I don't know how to
then execute the code. Do I need to find and install a LISP interpreter
anyway? Thanks again.


In article <············@nnrp1.deja.com>,
  Andrew Cooke <······@andrewcooke.free-online.co.uk> wrote:
>
>
> Starting a Lisp process just means starting the Lisp interpreter.
>
> You need to have a Lisp installed on your computer.  I have SuSE
Linux,
> and that includes CLISP.  If you have SuSE Linux, then use YAST to
> install CLISP.  Once you've done that type "clisp" in a terminal
window.
>
> If you have another Linux you need to find out what lisp packages are
> available and get one.  You may already have one - have you tride
typing
> "lisp" or "clisp"?
>
> Andrew
>
> In article <············@nnrp1.deja.com>,
>   chapulin <········@my-deja.com> wrote:
> > In my beginners LISP book, it says "to begin a session with LISP,
> start
> > a LISP process." How do I do this in a Linux environment? If anyone
> > could tell me what the proper commands would be to get the ball
> rolling,
> > that would be great. Thsnks.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

--

-chapulin


Sent via Deja.com http://www.deja.com/
Before you buy.
From: Michael Hudson
Subject: Re: Beginners LISP question
Date: 
Message-ID: <m33dry56tv.fsf@atrus.jesus.cam.ac.uk>
chapulin <········@my-deja.com> writes:

> Andrew --
> 
> 	I tried both "lisp" and "clisp" but neither of them worked (I have
> Redhat Linux). I was under the impression that I would be able to
> compile and work with LISP already because someone told me emacs came
> automatically with the capability to do that. I can edit a file with a
> .lsp extension and emacs knows its a LISP file, but I don't know how to
> then execute the code. Do I need to find and install a LISP interpreter
> anyway? Thanks again.
> 
> 

clisp is easy enough to install on RedHat Linux, but doesn't come with
it. You can get an rpm at:

http://rpmfind.net/linux/RPM/suse/6.3/i386/suse/d2/clisp-99.07.22-13.i386.html

This (as you can probably read from the URL) is for Suse 6.3 but I
just installed it happily enough on my RedHat 6.1 system. 

You'll also be wanting to install ilisp (a souped-up lisp-mode, to
over-simplify); get that from ilisp.cons.org.

Have you read http://www.telent.net/lisp/howto.html? Lots of useful
info there. I'd recommend clisp for starters, but you'll probably want
to install cmucl at some point.

Once you have ilisp & clisp installed, fire up emacs and execute 'M-x
clisp-hs' and have fun!

HTH,
Michael
From: Andrew Cooke
Subject: Re: Beginners LISP question
Date: 
Message-ID: <85sv9t$n9r$1@nnrp1.deja.com>
In article <············@nnrp1.deja.com>,
  chapulin <········@my-deja.com> wrote:
> 	I tried both "lisp" and "clisp" but neither of them worked (I
have
> Redhat Linux). I was under the impression that I would be able to
> compile and work with LISP already because someone told me emacs came
> automatically with the capability to do that. I can edit a file with a
> .lsp extension and emacs knows its a LISP file, but I don't know how
to
> then execute the code. Do I need to find and install a LISP
interpreter
> anyway? Thanks again.

Ah...

I haven't used the lisp in emacs (it's not the common lisp standard
which is what most books talk about).  But if you go to the *scratch*
buffer and type
(print "hello")
and then move the cursor to the begining of the line and type Ctrl-Alt-x
you should see the result of that in the command line.

To make more progress you need to follow the emacs documentation.  Type
Ctrl-h and then i and select emacs, then search for entries on Lisp.  I
can't help you more than that as I haven't used it...

Good luck,
Andrew



Sent via Deja.com http://www.deja.com/
Before you buy.